Home > Software engineering >  WINHTTP 307 redirect, call WinHttpQueryHeaders get the header is not complete
WINHTTP 307 redirect, call WinHttpQueryHeaders get the header is not complete

Time:10-03

Good god,

I meet a problem now, help to see if there are met,
Use wireshark view, the header is as follows:

HTTP/1.1 307 Temporary Redirect
The Content - Length: 0
Location: https://gateway.zscaler.net:443/auD? Origurl=HTTP % 3 a % 2 f % 2 ftest % 2 etest % 2 ecom % 2 flogon % 2 easpx & amp; _ordtok=Mbk3WVRShN2NsQS0nWrN7q7LBn
The content-type: text/HTML
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM"
The Set - cookies: _sm_au_d=1; Path=/; Domain=.test.com

But call WinHttpQueryHeaders, can only receive part of the content, including the Set - cookies and P3P gone
Call WinHttpQueryHeaders:
WinHttpQueryHeaders (hRequest, WINHTTP_QUERY_RAW_HEADERS_CRLF WINHTTP_HEADER_NAME_BY_INDEX lpOutBuffer, & amp; DwSize, & amp; DwIndexNext);

Results:
HTTP/1.1 307 Temporary Redirect
The Content - Length: 160
The content-type: text/HTML
Location: http://test.com/logon.aspx? _sm_au_=iVV8NJ1jTVZ7k7ND

Troublesome everybody a great god help to look at, whether to have encountered a similar situation, or have any good Suggestions, thank you

CodePudding user response:

Can do the processing, etc., see if the API filtration,
  • Related