This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to test all HTTP message types?

 
Darya Akbari
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I wonder how I can test all HTTP message types. I am able to test with GET and POST but how can I test the remaining message types

Look the list below, maybe anyone can give a hint and update the list on how to best test these HTTP messages:

  • GET - that is the browser's default
  • POST - created by the browser when HTML contains s.th. like <form method="post" action="SelectBeer.do">
  • HEAD - you say
  • TRACE - you say
  • PUT - you say
  • DELETE - you say
  • OPTIONS - you say
  • CONNECT - you say


  • Regards,
    Darya
     
    Alton Hernandez
    Ranch Hand
    Posts: 443
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Originally posted by Darya Akbari:
    Hi,

    I wonder how I can test all HTTP message types. I am able to test with GET and POST but how can I test the remaining message types

    Look the list below, maybe anyone can give a hint and update the list on how to best test these HTTP messages:

  • GET - that is the browser's default
  • POST - created by the browser when HTML contains s.th. like <form method="post" action="SelectBeer.do">
  • HEAD - you say
  • TRACE - you say
  • PUT - you say
  • DELETE - you say
  • OPTIONS - you say
  • CONNECT - you say


  • Regards,
    Darya


    Just do it manually.

    Telnet to your http server e.g.

    telnet 127.0.0.1 80

    then issue the http commands e.g.

    GET / HTTP/1.1 <cr-lf>

    Refer to tne HTTP rfc for details....
     
    Darya Akbari
    Ranch Hand
    Posts: 1855
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi Alton,

    isn't there a way to let the browser do this work similar to GET and POST?

    Regards,
    Darya
     
    David Bridgewater
    author
    Ranch Hand
    Posts: 44
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi...

    I can send you a browser I wrote (in Java) which executes all seven main HTTP methods. It's basic, but good for this sort of testing - and (for curiosity) you can look at the source code.

    It is on my web site, but wrapped up with some other stuff - might be easier if you drop me an email directly, and I'll return a simpler JAR file.



    HTH,

    David.
    [ July 21, 2005: Message edited by: David Bridgewater ]
     
    Darya Akbari
    Ranch Hand
    Posts: 1855
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Sounds great, David .

    Regards,
    Darya
     
    Karthik Rajendiran
    Ranch Hand
    Posts: 218
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hello David,
    Can you send me too a copy.

    I think you must have used java.net [URL]package and submitted the request to the site. Am i rite?
     
    David Bridgewater
    author
    Ranch Hand
    Posts: 44
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    java.net.HttpURLConnection - it takes all the fun out of internet programming - it leaves you with hardly any development to do yourself!

    I've put the browser
    here for anyone to play with.

    I stress the fact that it is a basic tool for teaching/learning! There's a ReadMe.txt file in the JAR with a few essential details.

    Best,

    David.
     
    Darya Akbari
    Ranch Hand
    Posts: 1855
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Very good work David ,

    Thanks
    Darya
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic