I’m trying to do some http post to a server and I’m having some problems.
The sequence that I’m doing is:
1) AT+HTTPINIT 2) AT+HTTPPARA="CID",1" 3) AT+HTTPPARA="URL","add_the_current_URL" 4) AT+HTTPDATA=4000,5000 5) send_data() 6) AT+HTTPACTION=1 7) AT+HTTPTERM
The problem that I’m facing is:
The HTTPACTION answer is 200 (so in theory it’s OK), but after that the data is not in the server. I have tried to use HTTPREAD to read the answer of the server but I don’t get anything (the server always send a msg saying if it has been saved the info or if there is a problem).
I don’t think that HTTPREAD is the solution because as it’s said in the AT command mannual: “AT+HTTPREAD Read all data when AT+HTTPACTION=0 or AT+HTTPDATA is executed.”
But it’s the only method that I have found that read the server’s answer.
Thank you in advance!