HTTP Client Post Request.
Posted: Sun Feb 24, 2019 7:25 pm
Hello,
I would like to enquire about the syntax in regards to a POST request and sending a variable within that request.
The below for example will successfully POST a request of 2 specific values.
int httpcode = http.POST("uservalue=112233&user=7");
However what I would like to achieve is sending a String/Variable as one of the values. Something like this -
int httpcode = http.POST("uservalue=(VARIABLEHERE)&user=7");
Is this possible?
Thank you.
I would like to enquire about the syntax in regards to a POST request and sending a variable within that request.
The below for example will successfully POST a request of 2 specific values.
int httpcode = http.POST("uservalue=112233&user=7");
However what I would like to achieve is sending a String/Variable as one of the values. Something like this -
int httpcode = http.POST("uservalue=(VARIABLEHERE)&user=7");
Is this possible?
Thank you.