J-F C
2006-07-04 15:04:46 UTC
Hi,
I have a problem with WinHttpQueryHeaders.
After sending a Post Request without the required credential, I should
have the status code HTTP_STATUS_DENIED, but I'm getting
HTTP_STATUS_NO_CONTENT instead.
The weird thing is that it works fine for a Get Request, I'm getting
the expected HTTP_STATUS_DENIED.
I checked the response packets of both Get and Post request with Netmon
and it looks the same.
The problem is that I can't send back the Post Request with proper
credential, so I've patched this issue by sending a fake Get Request to
set the proper credential on my channel before sending the Post
Request, but this is causing unnecessary delay.
Any help would be greatly appreciated.
Thanks.
J-F C
I have a problem with WinHttpQueryHeaders.
After sending a Post Request without the required credential, I should
have the status code HTTP_STATUS_DENIED, but I'm getting
HTTP_STATUS_NO_CONTENT instead.
The weird thing is that it works fine for a Get Request, I'm getting
the expected HTTP_STATUS_DENIED.
I checked the response packets of both Get and Post request with Netmon
and it looks the same.
The problem is that I can't send back the Post Request with proper
credential, so I've patched this issue by sending a fake Get Request to
set the proper credential on my channel before sending the Post
Request, but this is causing unnecessary delay.
Any help would be greatly appreciated.
Thanks.
J-F C