6

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

2 Answers 2

7

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

Sign up to request clarification or add additional context in comments.

2 Comments

Unfortunately the only Linux system I have access to (my university's tux server) doesn't have curl installed. I'll try telnet. Thanks.
You can install curl on Windows: curl.haxx.se/download.html (scroll to the bottom of the page, or Ctrl+F, win32).
1

You could use a Javascript Ajax library, both jQuery and Prototype JS allow you to easily modify headers and Post data.

1 Comment

I'll try telnet but should that not work, I'll give the JS / Ajax library a shot

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.