Neo_M660 AT Command Set
Copyright © Neoway Technology Co., Ltd
70
Return
Value
See the Example.
Example
AT+HTTPSETUP
OK
Set up an HTTP link
Successful
AT+HTTPSETUP
ERROR
Set up an HTTP link
failed
Remarks
The link is set up successfully only after you set the destination address and port ID
correctly.
13.3 Executing HTTP Request: +HTTPACTION
Description
To execute an HTTP request
Format
AT+HTTPACTION=<mode>[,<length>]<CR>
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.aspx
OK
AT+HTTPSETUP
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
Set the destination path.
The default port is 80.
Set up an HTTP link.
GET request
Receive the response from
the HTTP server.