Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

Wi-Fi Combo Forum Discussions

Anonymous
Not applicable

It is implemented with reference to the examples(https_client.c)

below http get request code.

"GET /test?a=1122334455&b=10&c=10 HTTP/1.1\r\n" \   

"Host: \r\n" \

"Connection: close\r\n" \

  "\r\n"

But, my question is this code change post request.

I'm changing below code try http server request

"POST /test HTTP/1.1\r\n" \

"Host: \r\n" \

"Content-Length: 22\r\n"\

"Connection: close\r\n" \

"\r\n\r\n" \

"a=1122334455&b=10&c=10" \

"\r\n\r\n\r\n"

parameter a,b,c sending,

but the server has not checked parameter values.

I'm using WICED SDK 3.3.1.

0 Likes
2 Replies
VikramR_26
Employee
Employee
10 sign-ins 10 comments on KBA 5 comments on KBA

the present api's does not have parameter separation for parameter values. Hence you will need to pass it with the host url.

0 Likes
Anonymous
Not applicable

"POST /test HTTP/1.1\r\n" \

"Host: \r\n" \

"Content-Length: 22\r\n"\

"Connection: close\r\n" \

"\r\n\" \

"a=1122334455&b=10&c=10\r\n" \

"\r\n"

0 Likes