HTTP测试GET和POST请求-log.DAT
1 |
AT+QHTTPCFG="contextid",1 |
---|---|
2 |
OK |
3 |
AT+QHTTPCFG="responseheader",1 |
4 |
OK |
5 |
AT+QIACT? |
6 |
OK |
7 |
AT+QICSGP=1,1,"UNINET","","",1 |
8 |
OK |
9 |
AT+QIACT? |
10 |
OK |
11 |
AT+QIACT=1 |
12 |
OK |
13 |
AT+QIACT? |
14 |
+QIACT: 1,1,1,"10.155.68.50" |
15 |
|
16 |
OK |
17 |
AT+QHTTPURL=35,80 |
18 |
CONNECT |
19 |
|
20 |
OK |
21 |
AT+QHTTPGET=80 |
22 |
OK |
23 |
|
24 |
+QHTTPGET: 0,200,48 |
25 |
AT+QHTTPREAD=80 |
26 |
CONNECT |
27 |
HTTP/1.1 200 OK |
28 |
Server: nginx/1.20.2 |
29 |
Date: Fri, 10 Jun 2022 01:16:28 GMT |
30 |
Content-Type: application/json; charset=utf-8 |
31 |
Content-Length: 48 |
32 |
Connection: keep-alive |
33 |
X-Powered-By: Express |
34 |
Access-Control-Allow-Origin: * |
35 |
ETag: W/"30-ITspN7fRukVlmYYg5xvJrod7UE8" |
36 |
|
37 |
{"status":false,"data":"The parameter is wrong"} |
38 |
OK |
39 |
|
40 |
+QHTTPREAD: 0 |
41 |
AT+QHTTPURL=34,80 |
42 |
CONNECT |
43 |
|
44 |
OK |
45 |
AT+QHTTPPOST=20,80,80 |
46 |
CONNECT |
47 |
|
48 |
OK |
49 |
|
50 |
+QHTTPPOST: 0,200,48 |
51 |
AT+QHTTPREAD=80 |
52 |
CONNECT |
53 |
HTTP/1.1 200 OK |
54 |
Server: nginx/1.20.2 |
55 |
Date: Fri, 10 Jun 2022 01:16:40 GMT |
56 |
Content-Type: application/json; charset=utf-8 |
57 |
Content-Length: 48 |
58 |
Connection: keep-alive |
59 |
X-Powered-By: Express |
60 |
Access-Control-Allow-Origin: * |
61 |
ETag: W/"30-ITspN7fRukVlmYYg5xvJrod7UE8" |
62 |
|
63 |
{"status":false,"data":"The parameter is wrong"} |
64 |
OK |
65 |
|
66 |
+QHTTPREAD: 0 |