Arduino Esp8266响应超时

Arduino Esp8266响应超时,arduino,esp8266,http-status-code-408,Arduino,Esp8266,Http Status Code 408,我正在尝试从我的Arduino发送HTTP请求。我决定使用免费的RESTfulWeb服务-。但是出了点问题,我不明白是什么 获取请求: GET /country/get/all HTTP/1.1 Host: 45.79.172.152 Connection: keep-alive 串行监视器: AT+CIPMUX=0 OK AT+CIPSTART="TCP","45.79.172.152",80 CONNECT OK AT+CIPSEND=74 O

我正在尝试从我的Arduino发送HTTP请求。我决定使用免费的RESTfulWeb服务-。但是出了点问题,我不明白是什么

获取请求:

GET /country/get/all HTTP/1.1
Host: 45.79.172.152
Connection: keep-alive
串行监视器:

AT+CIPMUX=0


OK

AT+CIPSTART="TCP","45.79.172.152",80

    CONNECT

    OK
    AT+CIPSEND=74


    OK
    > 

    busy s...

    Recv 74 bytes

    SEND OK

    +IPD,493:HTTP/1.1 408 Request Timeout
    Date: Thu, 07 Jun 2018 16:10:59 GMT
    Server: Apache/2.4.25 (Debian)
    Content-Length: 307
    Connection: close
    Content-Type: text/html; charset=iso-8859-1

    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>408 Request Timeout</title>
    </head><body>
    <h1>Request Timeout</h1>
    <p>Server timeout waiting for the HTTP request from the client.</p>
    <hr>
    <address>Apache/2.4.25 (Debian) Server at services.groupkt.com Port 80</address>
    </body></html>
    CLOSED
AT+CIPMUX=0
好啊
AT+CIPSTART=“TCP”,“45.79.172.152”,80
连接
好啊
AT+CIPSEND=74
好啊
> 
忙碌的s。。。
Recv 74字节
发送OK
+IPD,493:HTTP/1.1408请求超时
日期:2018年6月7日星期四格林尼治标准时间16:10:59
服务器:Apache/2.4.25(Debian)
内容长度:307
连接:关闭
内容类型:text/html;字符集=iso-8859-1
408请求超时
请求超时
服务器等待来自客户端的HTTP请求超时


位于services.groupkt.com端口80的Apache/2.4.25(Debian)服务器 关闭

我做错了什么

HTTP与Telnet不同。您不能在串行监视器中逐行输入HTTP请求。 HTTP请求意味着由程序发送,以及接收请求的超时时间
服务器上的完整请求只需一秒或两秒。写一个发送请求的草图。

看起来你并没有真正发送HTTP请求。但是为什么呢?在串行监视器中出现“>”之后,我开始逐行打印请求。“繁忙的s…”是什么意思?HTTP请求应该是78字节。