Go Down

Topic: POST requests with A6 GSM module (Read 646 times) previous topic - next topic


HI - I had  a look at the library at: gitlab.me-soldesign.com/Tobias/A6HTT

I'm really battling to get POST requests to work - I can do GET requests fine. Using the library I constructed a post request as follows:
I tried using Putty to do a raw http request, again the GET request works fine (see my format below) - what am I doing wrong with Post?
Has anyone got a cut and paste sample of their logged serial output Post as sent to your Gsm module (or Wi-Fi module? I suppose) If you edit your security sensitive bits and show me how you did it, that would be great.

Code: [Select]
POST b.php HTTP/1.1
HOST: localhost
Content-Length: 14
Content-Type: application/x-www-form-urlencoded

This GET request works fine:
Code: [Select]
GET /b.php?temperature=26 HTTP/1.1
Host: localhost


why there is a no slash (/) in the POST while exists in GET request?

if you share the code, then can give a better idea, while right now only say the above.

Go Up