UNSAFE HEADER PARSING in Winhttp
When I use some Winhttp APIs, such as WinHttpSendRequest and WinHttpReceiveResponse on a Win 7 system, I will get error 12152 ERROR_HTTP_INVALID_SERVER_RESPONSE, if the website contains non-RFC compliant characters. Please see the following article: lenovo article The article also provides a solution: Call the WinHttpSetOption function with a new WINHTTP_OPTION_UNSAFE_HEADER_PARSING HTTP flag. Could anybody help me with a sample code to show how to set this flag? Thank you very much.
October 31st, 2012 5:47pm
You are more likely to get help with that at MSDN rather than Technet. Bill
October 31st, 2012 9:08pm
Hi, I suggest to contact MSDN forum for further help: http://social.msdn.microsoft.com/Forums/en-US/category/windowsdesktopdev The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding. Regards, Leo Huang TechNet Subscriber Support If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.Leo Huang TechNet Community Support
November 7th, 2012 2:07am