当前位置:   article > 正文

3,解析移远-BG95-HTTP_移远http

移远http

测试BG95用HTTP Get,访问网址:http://www.example.com/

发→◇AT+CSQ
收←◆AT+CSQ
+CSQ: 31,99

OK

发→◇AT+QHTTPCFG="contextid",1 
收←◆AT+QHTTPCFG="contextid",1 
OK

发→◇AT+QHTTPCFG="responseheader",1
收←◆AT+QHTTPCFG="responseheader",1
OK

发→◇AT+QIACT?
收←◆AT+QIACT?
OK

发→◇AT+QICSGP=1,1,"UNINET","","",1 
收←◆AT+QICSGP=1,1,"UNINET","","",1 
OK

发→◇AT+QIACT=1
收←◆AT+QIACT=1
OK

发→◇AT+QIACT?
收←◆AT+QIACT?
+QIACT: 1,1,1,"10.65.247.138"

OK

发→◇AT+QHTTPURL=23,80
收←◆AT+QHTTPURL=23,80
CONNECT
收←◆AT+QHTTPURL=23,80
CONNECT

发→◇http://www.example.com/

发→◇AT+QHTTPGET=80
收←◆AT+QHTTPGET=80
OK

收←◆+QHTTPGET: 0,200,1256

发→◇AT+QHTTPREAD=80
收←◆AT+QHTTPREAD=80
CONNECT
HTTP/1.1 200 OK
Age: 413740
Cache-Control: max-age=604800
Content-Type: text/html; charset=UTF-8
Date: Sun, 03 Apr 2022 02:57:23 GMT
Etag: "3147526947+ident"
Expires: Sun, 10 Apr 2022 02:57:23 GMT
Last-Modified: Thu, 17 Oct 2019 07:18:26 GMT
Server: ECS (sab/5697)
Vary: Accept-Encoding
X-Cache: HIT
Content-Length: 1256

<!doctype html>
<html>
<head>
    <title>Example Domain</title>

    <meta charset="utf-8" />
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <style type="text/css">
    body {
        background-color: #f0f0f2;
        margin: 0;
        padding: 0;
        font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
        
    }
    div {
        width: 600px;
        margin: 5em auto;
        padding: 2em;
        background-color: #fdfdff;
        border-radius: 0.5em;
        box-shadow: 2px 3px 7px 2px rgba(0,0,0,0.02);
    }
    a:link, a:visited {
        color: #38488f;
        text-decoration: none;
    }
    @media (max-width: 700px) {
        div {
            margin: 0 auto;
            width: auto;
        }
    }
    </style>    
</head>

<body>
<div>
    <h1>Example Domain</h1>
    <p>This domain is for use in illustrative examples in documents. You may use this
    domain in literature without prior coordination or asking for permission.</p>
    <p><a href="https://www.iana.org/domains/example">More information...</a></p>
</div>
</body>
</html>

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/163535
推荐阅读
相关标签
  

闽ICP备14008679号