locked
WinHttp and ERROR_HTTP_INVALID_SERVER_RESPONSE RRS feed

  • Question

  • 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. 

    in .net i can use useUnsafeHeaderParsing flag to disable this behavoiur.

    is there a way to do the same thing with winhttp ?

    if not , is there an alternative windows api i can use that will not generate that error? (must support https and windows xp).

    Friday, March 27, 2015 10:43 AM

All replies

  • I'm afraid that this can't be ignored for WinHttp, See this discussion: https://groups.google.com/forum/#!topic/microsoft.public.winhttp/C-_7D8BValM

    You need to use other way to around this issue...


    Best Regards,
    Please remember to mark the replies as answers if they help

    Monday, March 30, 2015 8:39 AM