LTE Standard Module Series
EC200U&EG915U_Series_HTTP(S)_Application_Note 4 / 50
Contents
About the Document ................................................................................................................................... 3
Contents ....................................................................................................................................................... 4
Table Index ................................................................................................................................................... 6
1 Introduction .......................................................................................................................................... 7
1.1. The Process of Using HTTP(S) AT Commands ...................................................................... 7
1.2. Description of HTTP(S) Request Header ................................................................................ 8
1.2.1. Customize HTTP(S) Request Header ............................................................................. 8
1.2.2. Output HTTP(S) Response Header ................................................................................. 8
1.3. Description of Data Mode ........................................................................................................ 8
2 Description of HTTP(S) AT Commands ........................................................................................... 10
2.1. AT Command Introduction ..................................................................................................... 10
2.1.1. Definitions ....................................................................................................................... 10
2.1.2. AT Command Syntax ..................................................................................................... 10
2.2. Declaration of AT Command Examples ................................................................................ 11
2.3. AT Command Description ..................................................................................................... 11
2.3.1. AT+QHTTPCFG Configure Parameters for HTTP(S) Server ..................................... 11
2.3.2. AT+QHTTPURL Set URL of HTTP(S) Server ............................................................. 15
2.3.3. AT+QHTTPGET Send GET Request to HTTP(S) Server ........................................... 16
2.3.4. AT+QHTTPGETEX Send GET Request to HTTP(S) Server to Get Data with Specified
Range 18
2.3.5. AT+QHTTPPOST Send POST Request to HTTP(S) Server via UART/USB ............. 19
2.3.6. AT+QHTTPPOSTFILE Send POST Request to HTTP(S) Server via File .................. 21
2.3.7. AT+QHTTPPUT Send PUT Request to HTTP(S) Server via UART/USB .................. 23
2.3.8. AT+QHTTPPUTFILE Send PUT Request to HTTP(S) Server via File ....................... 25
2.3.9. AT+QHTTPREAD Read Response from HTTP(S) Server via UART/USB ................ 26
2.3.10. AT+QHTTPREADFILE Read Response from HTTP(S) Server via File ..................... 27
2.3.11. AT+QHTTPSTOP Cancel HTTP(S) Request .............................................................. 28
3 Examples ............................................................................................................................................ 29
3.1. Access to HTTP Server ......................................................................................................... 29
3.1.1. Send HTTP GET Request and Read the Response ..................................................... 29
3.1.2. Send HTTP POST Request and Read the Response ................................................... 30
3.1.2.1. HTTP POST Body Obtained from UART/USB ..................................................... 30
3.1.2.2. HTTP POST Body Obtained from File System .................................................... 31
3.1.3. Send HTTP PUT Request and Read the Response ..................................................... 32
3.1.3.1. HTTP PUT Body Obtained from UART/USB ........................................................ 32
3.1.3.2. HTTP PUTBody Obtained from File System ........................................................ 34
3.2. Access to HTTPS Server ...................................................................................................... 35
3.2.1. Send HTTPS GET Request and Read the Response ................................................... 35
3.2.2. Send HTTPS POST Request and Read the Response ................................................ 36
3.2.2.1. HTTPS POST Body Obtained from UART/USB .................................................. 36