没有合适的资源?快使用搜索试试~ 我知道了~
首页Quectel_EC2x&EG9x&EM05_HTTP(S)_AT_Commands_Manual_V1.0.pdf
资源详情
资源评论
资源推荐

EC2x&EG9x&EM05 HTTP(S)
AT Commands Manual
LTE Module Series
Rev. EC2x&EG9x&EM05_HTTP(S)_AT_Commands_Manual_V1.0
Date: 2017-11-20
Status: Released
www.quectel.com

LTE Module Series
EC2x&EG9x&EM05 HTTP(S) AT Commands Manual
EC2x&EG9x&EM05_HTTP(S)_AT_Commands_Manual 1 / 36
Our aim is to provide customers with timely and comprehensive service. For any
assistance, please contact our company headquarters:
Quectel Wireless Solutions Co., Ltd.
7
th
Floor, Hongye Building, No.1801 Hongmei Road, Xuhui District, Shanghai 200233, China
Tel: +86 21 5108 6236
Email: info@quectel.com
Or our local office. For more information, please visit:
http://quectel.com/support/sales.htm
For technical support, or to report documentation errors, please visit:
http://quectel.com/support/technical.htm
Or email to: support@quectel.com
GENERAL NOTES
QUECTEL OFFERS THE INFORMATION AS A SERVICE TO ITS CUSTOMERS. THE INFORMATION
PROVIDED IS BASED UPON CUSTOMERS’ REQUIREMENTS. QUECTEL MAKES EVERY EFFORT
TO ENSURE THE QUALITY OF THE INFORMATION IT MAKES AVAILABLE. QUECTEL DOES NOT
MAKE ANY WARRANTY AS TO THE INFORMATION CONTAINED HEREIN, AND DOES NOT ACCEPT
ANY LIABILITY FOR ANY INJURY, LOSS OR DAMAGE OF ANY KIND INCURRED BY USE OF OR
RELIANCE UPON THE INFORMATION. ALL INFORMATION SUPPLIED HEREIN IS SUBJECT TO
CHANGE WITHOUT PRIOR NOTICE.
COPYRIGHT
THE INFORMATION CONTAINED HERE IS PROPRIETARY TECHNICAL INFORMATION OF
QUECTEL WIRELESS SOLUTIONS CO., LTD. TRANSMITTING, REPRODUCTION, DISSEMINATION
AND EDITING OF THIS DOCUMENT AS WELL AS UTILIZATION OF THE CONTENT ARE
FORBIDDEN WITHOUT PERMISSION. OFFENDERS WILL BE HELD LIABLE FOR PAYMENT OF
DAMAGES. ALL RIGHTS ARE RESERVED IN THE EVENT OF A PATENT GRANT OR
REGISTRATION OF A UTILITY MODEL OR DESIGN.
Copyright © Quectel Wireless Solutions Co., Ltd. 2017. All rights reserved.

LTE Module Series
EC2x&EG9x&EM05 HTTP(S) AT Commands Manual
EC2x&EG9x&EM05_HTTP(S)_AT_Commands_Manual 2 / 36
About the Document
History
Revision
Date
Author
Description
1.0
2017-11-20
Duke XIN/
Haley HUANG
Initial

LTE Module Series
EC2x&EG9x&EM05 HTTP(S) AT Commands Manual
EC2x&EG9x&EM05_HTTP(S)_AT_Commands_Manual 3 / 36
Contents
About the Document ................................................................................................................................... 2
Contents ....................................................................................................................................................... 3
Table Index ................................................................................................................................................... 5
1 Introduction .......................................................................................................................................... 6
1.1. The Process of Using HTTP(S) AT Commands ...................................................................... 6
1.2. Description of HTTP(S) Header .............................................................................................. 7
1.2.1. Customize HTTP(S) Request Header ............................................................................. 7
1.2.2. Output HTTP(S) Response Header ................................................................................. 7
1.3. Description of Data Mode ........................................................................................................ 8
2 Description of HTTP(S) AT Commands ............................................................................................. 9
2.1. AT+QHTTPCFG Configure Parameters for HTTP(S) Server ............................................... 9
2.2. AT+QHTTPURL Set URL of HTTP(S) Server .................................................................... 12
2.3. AT+QHTTPGET Send GET Request to HTTP(S) Server .................................................. 13
2.4. AT+QHTTPGETEX Send Range GET Request to HTTP(S) Server.................................. 14
2.5. AT+QHTTPPOST Send POST Request to HTTP(S) Server via UART/USB .................... 15
2.6. AT+QHTTPPOSTFILE Send POST Request to HTTP(S) Server via File ......................... 17
2.7. AT+QHTTPREAD Read Response from HTTP(S) Server via UART/USB ........................ 18
2.8. AT+QHTTPREADFILE Read Response from HTTP(S) Server via File ............................ 19
2.9. AT+QHTTPSTOP Cancel HTTP(S) Request ..................................................................... 20
3 Examples ............................................................................................................................................ 21
3.1. Access to HTTP Server ......................................................................................................... 21
3.1.1. Send HTTP GET Request and Read the Response ..................................................... 21
3.1.2. Send HTTP POST Request and Read the Response ................................................... 22
3.1.2.1. Post Body Obtained from UART/USB ................................................................... 22
3.1.2.2. Post Body Obtained from File System .................................................................. 23
3.2. Access to HTTPS Server ...................................................................................................... 24
3.2.1. Send HTTPS GET Request and Read the Response ................................................... 24
3.2.2. Send HTTPS POST Request and Read the Response ................................................ 26
3.2.2.1. Post Body Obtained from UART/USB ................................................................... 26
3.2.2.2. Post Body Obtained from File System .................................................................. 28
4 Error Handling .................................................................................................................................... 30
4.1. Executing HTTP(S) AT Commands Fails .............................................................................. 30
4.2. PDP Activation Fails .............................................................................................................. 30
4.3. DNS Parse Fails .................................................................................................................... 30
4.4. Entering Data Mode Fails ...................................................................................................... 31
4.5. Sending GET/POST Requests Fails .................................................................................. 31
4.6. Reading Response Fails ....................................................................................................... 31
5 Summary of ERROR Codes .............................................................................................................. 33
6 Summary of HTTP(S) Response Codes .......................................................................................... 35
剩余36页未读,继续阅读















安全验证
文档复制为VIP权益,开通VIP直接复制

评论0