Seeed-Studio / GPRS_SIM900

library for GPRS shield with sim900 module.
MIT License
138 stars 96 forks source link

HTTP Post #34

Closed lupuandrei closed 4 years ago

lupuandrei commented 5 years ago

This is not an error, it's a question ... Does anyone have any idea how I could use the library to send a POST request with some parameters?

lanselambor commented 5 years ago

@lupuandrei With TCP send methd fill the content like this "POST /media/uploads/mbed_official/hello.txt HTTP/1.0\r\n\r\n".

chindro commented 5 years ago

The hardware modules SIM800 and SIM900 support HTTP natively. Check the command manual: http://www.jechavarria.com/wp-content/uploads/2015/05/SIM900-AT-Commands-Manual_V1.07.pdf

I'm currently working on HTTP GET support for this library. If this is done, adding HTTP Post is not a big deal anymore.