esp8266 byethost错误获取请求 [英] esp8266 byethost Error get request

查看:131
本文介绍了esp8266 byethost错误获取请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早上好,我想通过esp8266发送数据,我在byethost中有一个合格的帐户,并且我也有一个与其他托管服务提供商付款的托管帐户,但是在byethost的情况下,我收到以下错误消息:

Good morning, I want to send data by get through esp8266, I have a qualifying account in byethost and I also have a hosting account paid with another hosting provider, but with byethost I get the following error:

AT+CIPSTART="TCP","ahorrodeenergy.byethost17.com",80
AT+CIPSEND=67
GET /inserta.php HTTP/1.1 
Host:ahorrodeenergy.byethost17.com/inserta.php"



+IPD,1080:HTTP/1.1 200 OK
Server: nginx
Date: Fri, 10 Mar 2017 01:30:09 GMT
Content-Type: text/html
Content-Length: 851
Connection: keep-alive
Vary: Accept-Encoding
Expires: THu, 01 Jan 1970 00:00:01 GMT
Cache-Control: no-cache

并返回:该网站需要使用Javascript,请在​​您的浏览器中启用Javascript或使用支持Javascript的浏览器

And returns: This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support

推荐答案

欺骗用户代理字符串.它可能会尝试以此识别您的浏览器,然后尝试确定您是否启用了JavaScript.然后,它可以尝试使用更活跃的测试,例如插入一段JavaScript,并期望以挑战和响应的方式调用该页面,并计算该javascript的结果.但是我认为User-Agent欺骗应该可以正常工作.请执行以下操作:

Spoof the User-Agent string. It probably tries to identify your browser by that, and then tries to figure out if you have JavaScript enabled. It could then try to use more active tests, like inserting a piece of JavaScript and expect a page to be called with the result of the computation of that javascript, in a challenge-and-response manner. But I think a User-Agent spoof should just work fine. Do the following:

AT+CIPSTART="TCP","ahorrodeenergy.byethost17.com",80
AT+CIPSEND=154
GET /inserta.php HTTP/1.1 
Host: ahorrodeenergy.byethost17.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0


+IPD,1080: ..

(CIPSEND中的数字假定\r\n被用作换行符)

(number in CIPSEND assumes \r\nbeing used as newline)

这篇关于esp8266 byethost错误获取请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆