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 09:34:34 +0800

Hi guys,

Add more information.
After I got the 204 response, then I do POST again.
It seems the code didn't do the callback function of readFileFunc.
So it didn't upload the message and I'll get the NG result.
If I got the 200 response, then I do POST again.
It can do callback function of readFileFunc.
Then the result is OK.

Which I want is that I need re-use the curl_handle.
But now, it seems if I got the 204, I can't use the same curl_handle again.
Is my code wrong?

thx

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