通过原始HTTP传递POST数据

xbo*_*nez 6 post http

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

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

    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
Run Code Online (Sandbox Code Playgroud)

dme*_*sky 7

如果你想要真正的原始,请使用telnet.如果你想要更高级别的东西 - 你可以使用卷曲.

  • 您可以在Windows上安装curl:http://curl.haxx.se/download.html(滚动到页面底部,或Ctrl + F,win32). (2认同)