Answer the question
In order to leave comments, you need to log in
How to correctly send a POST request at a low level of abstraction?
I am writing a program for a microcontroller (it doesn't matter which one)
There is a task to send messages to the server via a POST request via a mobile modem.
Step by step I will tell you what I am doing: I am
setting up the modem.
I create a TCP connection (for example, let's take the google.ru server) (AT+QIOPEN="TCP", "64.233.165.94",80 )
//reply about the success of the connection
I send the request:
POST https://www.google.ru HTTP /1.1
Host: www.google.ru
Content-Type: application/x-www-form-urlencoded
Content-Length: 3
m=5
The server is silent in response. In this case, if you simply send an incorrect request (example: HTTP1.1),
then the server returns a 400 error.
Please tell me what am I doing wrong?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question