2012-09-05 2 views
0

Exchange 2003 서버에 연결하고 메일을 읽으려고합니다. 서버에는 양식 기반 인증이 있습니다.webdav exchange 2003 440

로그인 POST에서 모두 잘 작동합니다. 두 가지 쿠키를 얻지 만 두 번째 요청을 시도하면 서버가 440 상태 코드를 보냅니다.

요청/응답 세리에이션 (서버, 패스, 사용자 이름 및 도메인이 다시 작성 되었음)을 포함 시켰으므로 누구나 내가 실수를하고있는 곳을 볼 수 있기를 바랍니다.

**** REQUEST ****** 
>[url] => https://<SERVER>/exchweb/bin/auth/owaauth.dll 
>[request_header] => POST /exchweb/bin/auth/owaauth.dll HTTP/1.1 
> User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.83 Safari/537.1) 
> Accept: */* 
> Accept-Encoding: gzip 
> Cookie: cadata="2CurvKH0Qt2fgnqjSl4/bOTmdobQWv581GKUu5IxzspI+BN525+gHJdhkX8hmWWkLK9KdGWNd5Jd9Fz9/"; sessionid=8d0f4db8-0f3e-4b6d-90d1-bec8cff4fe5f 
> Connection: keep-alive 
> Host: <CALLING SERVER> 
> Content-type: application/x-www-form-urlencoded;charset=UTF-8 
> Content-Length: 152 
> destination=https%3A%2F%2F<SERVER>%2Fexchange%2F<USER>%2F&username=<DOMAIN>%5C<USER>&password=<PASSWORD>&SubmitCreds=Log+On&forcedownlevel=1&trusted=1 



*** RESPONSE **** 
< string(421) "HTTP/1.1 302 Moved Temporarily 
< Content-Length: 0 
< Location: https://<SERVER/exchange/<USER>/ 
< Server: Microsoft-IIS/6.0 
< MicrosoftOfficeWebServer: 5.0_Pub 
< X-Powered-By: ASP.NET 
< Set-Cookie: sessionid=3456b6f5-abd1-4bf9-8da3-539900f7f10d; path=/ 
< Set-Cookie: cadata="17DhqZvs6837xRRMiNH2lBcCzo/AnK8Qbqj1mH791xfgUqy+TpnB201UvxcD9IePzaYLkZQfpjR2nOW3D"; HttpOnly; secure; path=/ 
< Date: Wed, 05 Sep 2012 07:53:12 GMT 


*** REQUEST *** 
> [url] => https://<SERVER>/exchange/<USER>/Indbakke 
> [request_header] => SEARCH /exchange/<USER>/Indbakke HTTP/1.0 
> User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.83 Safari/537.1 
> Cookie: cadata="17DhqZvs6837xRRMiNH2lBcCzo/AnK8Qbqj1mH791xfgUqy+TpnB201UvxcD9IePzaYLkZQfpjR2nOW3D"; sessionid=3456b6f5-abd1-4bf9-8da3-539900f7f10d 
> Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 
> Accept-Language: da-DK,da;q=0.8,en-US;q=0.6,en;q=0.4 
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 
> Connection: keep-alive 
> Accept-Encoding: gzip,deflate,sdch 
> Host: <CALLING SERVER> 
> Depth: 0 
> Translate: f 
> Content-type: application/xml; 
> Content-Length: 297 

> <?xml version="1.0"?><a:searchrequest xmlns:a="DAV:" xmlns:s="http://schemas.microsoft.com/exchange/security/"> 
>  <a:sql> 
>   SELECT "DAV:displayname" 
>   ,"urn:schemas:httpmail:subject" 
>   FROM "https://<SERVER>/exchange/USER/Indbakke/" 
>  </a:sql> 
> </a:searchrequest> 


*** RESPONSE *** 
< HTTP/1.1 440 Login Timeout 
< Set-Cookie: sessionid=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT 
< Set-Cookie: cadata=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT 
< Content-Type: text/html 
< Connection: close 
< Content-Length: 43 

답변

관련 문제