我正在尝试从任何浏览器向亚马逊发送一个简单的GET请求工作,并且在hurl.it
看起来也一样,但我收到了一个错误请求的响应。< / p>
请求是从硬件设备发送的,发送时看起来像这样:
GET /index.php HTTP/1.1
Host:XX.XX.2XX.1X
Content-Type:application/json
Connection:close
回应是这样的:
HTTP/1.1 400 Bad Request
Date: Fri, 16 Oct 2015 13:58:29 GMT
Server: Apache/2.4.7 (Ubuntu)
Content-Length: 320
Connection: close
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
它出了什么问题? (服务器是一个简单的index.php文件,没有更多标题)