在将请求从Wiznet W5500发送到服务器的参数时接收403
我使用 W5500 以太网芯片作为客户端连接到服务器。当我发送这样的请求时:
GET / HTTP/1.1\r\nHost: www.siblette.de\r\n\r\n
服务器返回 200 OK。
但是一旦我添加参数,例如:
GET / HTTP/1.1\r\nHost: www.siblette.de?a=1\r\n\r\n
服务器返回 403 FORBIDDEN。
当我只需在 google chrome 浏览器中输入 www.siblette.de?a=1 时,页面就会显示打开没有错误。所以我认为问题在于GET请求消息字符串的设置。也许 GET 请求中缺少服务器需要的权限。
有人可以帮助我吗?
并且:有人知道我在哪里可以找到有关请求的一般设置的信息吗?
问候, 克里斯.
I'm using the W5500 Ethernet Chip to connect to a server as a client. When I send a request like that:
GET / HTTP/1.1\r\nHost: www.siblette.de\r\n\r\n
the server returns 200 OK.
But as soon as I add parameters e.g.:
GET / HTTP/1.1\r\nHost: www.siblette.de?a=1\r\n\r\n
The server returns 403 FORBIDDEN.
When I just type www.siblette.de?a=1 into my google chrome browser the page opens without error. So I think the problem is the setup of the GET request message string. Maybe there is something missing inside the GET request what the server needs for permission.
Can anybody help me?
And: does anybody know where I can find some information about the general setup of requests?
Greetings,
Chris.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我使用Wireshark检查了如何正确设置请求消息。在WebBrowser中聆听服务器IP和键入
“ siblette.de/?a=1”
。正确的是:I used Wireshark to check how a request message is setup correctly. Listening to the server IP and typing
"siblette.de/?a=1"
into the webbrowser. Correct is: