arduino-libraries / ArduinoHttpClient

Arduino HTTP Client library
282 stars 170 forks source link

Post multiple variables #73

Open minestrone1994 opened 5 years ago

minestrone1994 commented 5 years ago

Is there any way to post more than one variable at the same time?

sandeepmistry commented 5 years ago

Hi @minestrone1994,

Could you please provide some more context on what you are trying to POST? In general, you'll have to encode the HTTP body to a format the server expects.

isosel commented 4 years ago

more details pls

are you using client.post( ) ?

you can post w/e you want within the body of your request.

within the header, specify the content type and content length then within the body, you can make this:

string data = varA + varB; client.print(data);