Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
Re: CURLOPT_POST with no CURLOPT_POSTFIELDS
From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Thu, 5 Mar 2020 16:28:40 +0100 (CET)
Date: Thu, 5 Mar 2020 16:28:40 +0100 (CET)
On Wed, 4 Mar 2020, Jason Proctor via curl-library wrote:
> The issue is that if you specify CURLOPT_POST but don't specify
> CURLOPT_POSTFIELDS, then the library sticks in sending mode and
> doesn't call the header or write callbacks, despite the fact that the
> server has happily sent a response. Setting CURLOPT_POSTFIELDS to the
> empty string results in the correct behaviour.
That's not expected behavior nor does it match what existing libcurl tests
verify that works. For example in test 1514:
https://github.com/curl/curl/blob/master/tests/libtest/lib1514.c
Can you provide a test code that reproduces this?
-- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://www.wolfssl.com/contact/ ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2020-03-05