page/08140 是 HTTP/1.1 405 不允许的方法

发布于 2025-01-10 12:44:40 字数 533 浏览 3 评论 0原文

所以我试图写入端口 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

十雾 2025-01-17 12:44:40

看来我是你的同学之一,请看看这张图片,因为它可能对你有帮助。
图片

it seems I am one of your classmates, please take a look to this image as it may help you.
image

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文