WM620 AT
Command Manual
Copyright © Neoway Technology Co., Ltd
131
18.3 Executing HTTPS Request: +HTTPSACTION
Description
To execute an HTTPS request
Format
AT+HTTPSACTION=<mode>[,<length>]<CR>
Parameter
<mode>: HTTPS request mode, available value can be 0, 1, 2, 99
0: GET
1: HEAD
2: POST
99: OPEN_MODE, user-defined packet mode
<length>: ranging from 1 to 2018 when
<mode>
is set to
POST
;
<length>
= header
data length when
<mode>
is set to
OPEN_MODE
, the header is to be
defined by users.
Return Value
See the Example.
Example
AT+HTTPSPARA=url,support.cdmatech.com/login/
OK
AT+HTTPSPARA=port,443
OK
AT+HTTPSSETUP
OK
HTTPS SETUP OK
AT+HTTPSACTION=0
OK
+HTTPSRECV:
HTTP/1.1 200 OK
Server: QUALCOMM
X-Powered-By: Servlet/2.5 JSP/2.1
Content-Type: text/html; charset=ISO-8859-1
Date: Sat, 15 Feb 2014 05:58:54 GMT
Content-Length: 7630
Connection: close
Set-Cookie:
JSESSIONID=8V1dS1CpzlPcyNl2LzJZLQgDxWclpMJzP
3FHZhVhpGb83GVM02sn!1955538012; path=/; HttpOnly
/*
homepage content
, html format*/
……..
Set the destination
path.
Set the destination
port to 443.
Set up an HTTPS
connection.
GET request.
Receive the request
from
the
HTTPS
server.
The server responded
and
then