各位大神好,
我現在遇到一個問題,幫忙看看是否有遇到過。
用wireshark查看,得到的 表頭如下:
HTTP/1.1 307 Temporary Redirect
Content-Length: 0
Location: https://gateway.zscaler.net:443/auD?origurl=http%3A%2F%2Ftest%2etest%2ecom%2flogon%2easpx&_ordtok=Mbk3WVRShN2NsQS0nWrN7q7LBn
Content-Type: text/html
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM"
Set-Cookie: _sm_au_d=1;path=/;domain=.test.com
但是呼叫WinHttpQueryHeaders,只能得到一部分內容,其中Set-Cookie和P3P不見了
呼叫WinHttpQueryHeaders:
WinHttpQueryHeaders(hRequest,WINHTTP_QUERY_RAW_HEADERS_CRLF,WINHTTP_HEADER_NAME_BY_INDEX, lpOutBuffer, &dwSize,&dwIndexNext);
得到的結果:
HTTP/1.1 307 Temporary Redirect
Content-Length: 160
Content-Type: text/html
Location: http://test.com/logon.aspx?_sm_au_=iVV8NJ1jTVZ7k7ND
麻煩各位大神幫忙看看,是否有遇到過類似情況,或者有什么好建議,謝謝了
uj5u.com熱心網友回復:
可以看看是不是API做了處理等,過濾了。轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/106610.html
標籤:網絡編程
上一篇:win7 系統服務編程問題
