http_excepton with PUT/POST with v1.0.0

Aug 19, 2014 at 11:19 AM
Edited Aug 19, 2014 at 12:01 PM
I always receive an http_exception with (OS is German):
code=12032
msg="Die Anforderung muss erneut gesendet werden."

For the following code fragment:
http_client client(L"http://testhost");
    try
    {
        auto task = client.request(methods::PUT, L"/status/current.entry", L"TEST");
        auto response = task.get();
        if (response.status_code() != status_codes::OK)
        {
            // ...
        }
    }
    catch (http_exception &ex)
    {
        std::cout << ex.what() << " " << ex.error_code();
    }
When i remove the body data the request works.
When i set the "/status/current.entry" to "" it works too.

I use Casablanca v1.0.0 VS 2010 build.

EDIT: casablanca version 1.2 ha sthe following exception message:
msg="Error in: WinHttpReceiveResponse"
code=12032


Any suggestions?
Coordinator
Aug 20, 2014 at 11:46 PM
Hi SoulHunt,

Please try our latest version or at least 1.3 version. You can use VS2013 Express to test it.

I believe we have already fixed this "ERROR_WINHTTP_RESEND_REQUEST" problem.

Thanks