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

Reply via email to