My application performs an HTTP post with the following WIPSoft AT commands:
// setup
AT+WIPCFG=1
AT+WIPBR=1,6
AT+WIPBR=2,6,11,"INTERNET"
AT+WIPBR=4,6,0
// create a client connection to the server. note the port number is 80 for http
AT+WIPCREATE=2,1,"xxx.xxx.xxx.xxx",80
// post the data
AT+WIPDATA=2,1,2
GET http://xxx.xxx.xxx.xxx/page_name.aspx?Data=data_formatted_as_a_string
// when the post is done, leave data mode and close the socket
+++AT+WIPCLOSE=2,1
Sorry, but I cannot include the responses to the commands above. (That system has gone live in the mean time, and I might get executed without trail if I start posting test data to it)
The app uploads data to a server using HTTP GET. I was rather confused when the suppliers gave my this solution to upload my data, but it seemed to do the trick. The problem with this method is that I have to leave Data Mode after each GET; this becomes very time consuming and is not an option when you have dozens of records to upload.
[SOLUTION] Forgive me for reviving such an old thread, but I have struggled with this for several hours now and couldn’t find any decent references for doing an HTTP POST without embedding the POST data in the URL.
Here is what I believe to be a better approach. There is no such example in any official documentation I could find, but it seems to work. I added the solution here for future reference, as this is the first relevant page I found during my own search.
Start IP Stack
AT+WIPCFG=1
OK
Open GPRS bearer
AT+WIPBR=1,6
OK
Set APN (replace “internet” with your APN)
AT+WIPBR=2,6,11,"internet"
OK
Start GPRS bearer
AT+WIPBR=4,6,0
OK
Connect TCP socket to remote server on port 80 in HTTP mode (substitute your URL, but you can use httpbin.org for testing)
AT+WIPCREATE=5,1,"httpbin.org",80
OK
+WIPREADY 5, 1
Do HTTP POST (adjust the content type, content length and other header data to suit your needs)
AT+WIPFILE=5,1,4,"http://httpbin.org/post","","","Accept","*/*","Accept-Encoding","deflate","Content-Type","application/json","Content-Length","9"
OK
CONNECT
(NB: Now the modem is in data mode and does not echo bytes sent over UART)