I've encounter some odd issues with WinHTTP and I'm new to network programming. I need to convert some code to work with https and we picked WinHTTP. For first step, I've manage to port the code to use the WinHTTP api. However, there is something interesting I use network monitor.
The old way was sending the POST request together with the payload (application/x-www-form-urlencoded) in one packet. But after I switch to use WinHTTP, it handle this in 2 network packet, one packet for the "HTTP:Request, POST"and another packet "HTTP:HTTP Payload" containing just the form data.
Our server seems to be able to handle both scenario, but as soon as I turn on authentication, my POST request are failing because the server complaining about missing form data.
Is it possible to force WinHTTP send the post request in one packet?
No replies to this topic
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









