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:
mguessan 2010-10-04 22:50:35 +00:00
parent 2616e823fa
commit 9a41a12980
1 changed files with 3 additions and 2 deletions

View File

@ -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