http_excepton with PUT/POST with v1.0.0

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

For the following code fragment:
http_client client(L"http://testhost");
        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"

Any suggestions?
Aug 21, 2014 at 12:46 AM
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.