[英]Arduino 400 bad request with ESP8266
我正在嘗試使用Arduino和ESP8266發出GET請求。
我正在使用此代碼:
AT+CIPSEND=140
GET taub-prayer-ramym/girls HTTP/1.1\r\nHost: taub-prayer-ramym.c9.io\r\nUser-Agent: ESP8266_HTTP_Client\r\nConnection: keep-alive\r\n\r\n
但我得到這個作為回報:
+IPD,187:HTTP/1.0 400 Bad request
Cache-Control: no-cache
Connection: close
Content-Type: text/html
<html><body><h1>400 Bad request</h1>
Your browser sent an invalid request.
</body></html>
CLOSED
我試圖修復語法,但沒有成功。 有什么建議么?
我成功了。將網址更改為:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.