通过原始HTTP传递POST数据 [英] Pass POST data via raw HTTP

查看:129
本文介绍了通过原始HTTP传递POST数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出于测试目的,我需要将一些原始POST数据发送到我在Web服务器上设置的页面。页面工作正常。我已经测试过通过另一个网页以及一个C#应用程序发送数据。但是,我想尝试将原始HTTP数据传递给它。

For testing purposes, I need to send some raw POST data to a page I set up on my web server. The page is working fine. I have tested sending data to via another web page as well as a C# application. However, I want to try passing raw HTTP data to it as well.

我该怎么做?什么客户能让我做到这一点?我希望以下列形式将数据传递到页面:

How can I do that? What client will enable me to do that? I'm looking to pass data to the page in the following form:

    POST /login.jsp HTTP/1.1
    Host: www.mysite.com
    User-Agent: Mozilla/4.0
    Content-Length: 27
    Content-Type: application/x-www-form-urlencoded

    userid=joe&password=guessme


推荐答案

如果你想要它真正的原始,使用 telnet 。如果你想要更高级别的东西 - 你可以使用 curl

If you want it real raw, use telnet. If you want something more high-level — you can use curl.

这篇关于通过原始HTTP传递POST数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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