curl / Mailing Lists / curl-library / Single Mail


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

From: 杨俊 <>
Date: Wed, 18 Jan 2017 16:36:22 +0800

Hi guys,

@Ray @Daniel the attachment is my test demo for this issue.
Because it is needed to connect the
So you should change a little code in the demo code firstly to get a token.
The test steps:

1. get a token.,%22productInstanceAttributes%22%3A%7B%22deviceSerialNumber%22%3A%2212345%22%7D%7D%7D&response_type=token&redirect_uri=https%3A%2F%2Flocalhost:3000/authresponse

please copy this link into a browser(I used google browser)---> it will
redirect a amazon confirmed UI ---> please input the user name ( and password(yj19861122). click login ---> wait a
second, it will return a url like this
at the address bar---> please copy the "Atza%7CI....WQI" this is the token,
from "access_token=" until before to "&token_type"----> and please change
the %7C after the Atza to '|'. It would be "Atza|Iw.....".

2. copy the token and paste it to the in line 33 in
alexa_request_simple_demo.c. Instead of the value of char *atoken
3. compile it and run it.
4. the default flow is that, it will run the "curl_send_audio_content"
circularly and this will always get the 200 response.
5. you can change the line 545 (uncomment it, and comment the line 546),
then the program will get the 204 firstly. And next, try to get the 200.
6. it need the openssl nghttp2


List admin:

Received on 2017-01-18