curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: A string issue that after received the http 204, the curl_formadd function seems couldn't work again

From: 杨俊 <yangjun9772_at_gmail.com>
Date: Tue, 17 Jan 2017 17:56:39 +0800

Hi,
I have used the latest libcurl. But I still have this problem.
curl_ver1: libcurl/7.52.1 OpenSSL/1.0.2i nghttp2/1.17.0

In my demo, the program would run circularly.
And I have tested another situation, it also have this strange problem.
The program do "curl_send_audio_content" directly, didn't do the "
curl_sync_state" anymore.
It would receive 200 from the server(this means the program will upload the
header and content with curl_formadd and the server get the right content).
the program done this circularly.
There were two result.
1. If it received the 200 from the server, the next time, the command could
still run successfully. It would upload the header and content again to the
server and receive the response from server.
2. If it received the 204 from the server, the next time, the error would
be happened. It just upload the header but no the content.

@Ray could you give me your sample? let me do it as reference.

Thx

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-01-17