Sending HTTP POST Request

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Sending HTTP POST Request

2,116 Views
Joe2
Contributor II

I need to send a simple HTTP POST request from my 52259-based MQX device to a web server. 

 

Could anyone point me to an example? I can see lots of web servers, but no HTTP GET or POST client examples.

 

Thanks a lot

 

Joe

 

Labels (1)
Tags (1)
0 Kudos
Reply
3 Replies

739 Views
LordMark
Contributor IV

Web_HVAC uses post method to send data to web server. Check out \demo\web_hvac\web pages\hvac_input.html. The corresponding cgi routin is "cgi_hvac_output" in cgi_hvac.c.

 

I took web_hvac as example. Hope it helps.

 

Regards,
Marco

0 Kudos
Reply

739 Views
Joe2
Contributor II

Hi Marco

 

I wasn't clear enough with my question, sorry. 

 

I want to send an HTTP POST request from my device to a web server somewhere on the internet... so I can post information gathered by my device to a central server somewhere.

 

Thanks

 

Joe

 

 

 

0 Kudos
Reply

739 Views
Joe2
Contributor II

I wrote my own in the end. 

 

Was OK.

 

I recommend it as a kind of Zen meditation exercise to others.

 

Joe

 

0 Kudos
Reply