page/08140 是 HTTP/1.1 405 不允许的方法
所以我试图写入端口 80 上的服务器,地址为“thirdthinggame.com”,我将“page/08140”作为我的名称变量,我试图联系该服务器,但在这样做时遇到问题我收到此消息:
page/08140 is HTTP/1.1 405 Method Not allowed (以及之后的其他内容)
我在这里编写的代码:(
sw.WriteLine("POST / HTTP/1.1\r\nHost: " + address + "\r\nContent-Length: 36\r\n\r\nname=" + name + "&location=" + position);
sw.Flush();
当我尝试将其放入代码示例中时,我认为它的格式不正确);
这样做时,我也将位置设置为“page/08140”。
address = "threethinggame.com";
名称=“页/08140”; 位置=“页/08140”;
so I am trying to write to a server on port 80 with the address being "threethinggame.com", I have "page/08140" as my name variable and I am trying to contact this server but having trouble doing so as when I do I receive this:
page/08140 is HTTP/1.1 405 Method Not Allowed
(Along with other stuff after)
the code I am code here:
sw.WriteLine("POST / HTTP/1.1\r\nHost: " + address + "\r\nContent-Length: 36\r\n\r\nname=" + name + "&location=" + position);
sw.Flush();
(I dont think it would format properly when I tried to put it in code sample);
when doing this, I also put location as "page/08140" too.
address = "threethinggame.com";
name = "page/08140";
location = "page/08140";
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来我是你的同学之一,请看看这张图片,因为它可能对你有帮助。
图片
it seems I am one of your classmates, please take a look to this image as it may help you.
image