WM620 AT
Command Manual
Copyright © Neoway Technology Co., Ltd
123
Parameter
<mode>: HTTP request mode, available value can be 0, 1, 2, 99
0: GET
1: HEAD
2: POST
99: OPEN_MODE, user-defined packet mode
<length>: The length of the POST content or user-defined packet length, maximum
value
2048
This parameter must be set when you set
<mode>
to
POST
or
OPEN_MODE
.
Return Value
See the Example.
Example
AT+HTTPPARA=url,www.neoway.com.cn/en/index.asp
x
OK
AT+HTTPPARA=port,80
OK
AT+HTTPSETUP
OK
HTTP SETUP OK
AT+HTTPACTION=0
OK
+HTTPRECV:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/7.5
Set-Cookie:
ASP.NET_SessionId=rh3fjg554ufzb145aevgzz45;
path=/; HttpOnly
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
X-UA-Compatible: IE=EmulateIE7
Date: Thu, 28 Nov 2013 03:06:57 GMT
Connection: close
Content-Length: 13842
/*neoway homepage, html format, 13842 bits*/
Set the destination path.
The port is 80.
Set
up
an
HTTP
connection.
GET request
Receive the response
from the HTTP server.