• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

How to test all HTTP message types?

 
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
     
    Ranch Hand
    Posts: 443
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
     
    author
    Posts: 44
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Sounds great, David .

    Regards,
    Darya
     
    Ranch Hand
    Posts: 228
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
    Posts: 44
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Very good work David ,

    Thanks
    Darya
     
    The harder you work, the luckier you get. This tiny ad brings luck - just not good luck or bad luck.
    We need your help - Coderanch server fundraiser
    https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
    reply
      Bookmark Topic Watch Topic
    • New Topic