Add exchange 2010 PBack cookie in compatibility mode
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1491 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
2616e823fa
commit
9a41a12980
|
@ -443,8 +443,9 @@ public abstract class ExchangeSession {
|
|||
((PostMethod) logonMethod).addParameter("trusted", "4");
|
||||
((PostMethod) logonMethod).addParameter("flags", "4");
|
||||
|
||||
// add exchange 2010 cookie
|
||||
logonMethod.addRequestHeader("Cookie", "PBack=0");
|
||||
// add exchange 2010 PBack cookie in compatibility mode
|
||||
httpClient.getState().addCookie(new Cookie(httpClient.getHostConfiguration().getHost(), "PBack", "0", "/", null, false));
|
||||
|
||||
logonMethod = DavGatewayHttpClientFacade.executeFollowRedirects(httpClient, logonMethod);
|
||||
|
||||
// test form based authentication
|
||||
|
|
Loading…
Reference in New Issue