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: Fri, 3 Feb 2017 10:51:14 +0800

Hi guys,

Are there someones could help me to duplicate this issue with the demo?
System: linux.
Version: libcurl/7.52.1 OpenSSL/1.0.2i nghttp2/1.18.1
Note:
1. get a new token firstly.
for example:
https://localhost:3000/authresponse#access_token=Atza%7CIwEBIA.......TVCuQ&token_type=bearer&expires_in=3600&scope=alexa%3Aall
the token is start from "Atza%7CIwE...TVCuQ".
Then modify this string a little to "Atza|IwE...TVCuQ" and instead of the
line 33 of the code.
2. And put the file of 16k.raw in the same folder of the executable file.
3. In this demo, comment the line 545 and un-comment the line 546, you can
get the OK demo(always get the 200 response circularly);
comment the line 546 and un-comment the line 545, you can get the NG
demo(will get the 204 response firstly, then the issue happened, can't send
the content to the server).

Thx

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-02-03