• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Testing HTTP methods

 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could someone give me an example of software for testing HTTP methods?
I want to construct the request (including the name of the HTTP method) by hand and get the response from the web server with all accompanying infomration, such as headers.
 
Ranch Hand
Posts: 817
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you can use TRACE method to know what the info is comming to server

correct me if wrong and if it works successfully then pls put the code here
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I've heard about HTTPUnit but I've never used it. It is supposed to be a kind of JUnit for HTTP, I don't know if it is really useful.
 
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have written a small mulit threaded java app, that through some config parameters listens on a given port and after logging the request passes it through to the server and then logs the server response on the way back.

If this is the sort of thing you are looking for I will try and dig it up. I wrote it when I was learning java and haven't used it for at least 3 years so I am not sure where it is and will probably be scared when looking at the code, but am happy to pass it on if it is the sort of thing you are wanting.

post a reply and I can email it to you off list (after I have found it).

Mat
 
Sergey Tyulkin
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Mat, I want slightly more Something like a small program with GUI, that lets me set destination resource (servlet or jsp page address), http method, client headers, HTTP body; then send this information to the server and receive response as is.
Anyway, thanks!

Will try to find myself...
 
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
U can use CURL, which works well with the non-SSL connections. (https).
It is both command line as well as GUI based.
 
Sergey Tyulkin
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you, Aruneesh!
I downloaded CURL, will look at it later today
 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Go with Alexandre's suggestion and give HttpUnit a try. It's easy to set up and use, and you can simulate and test form submission, retrieval of results, setting of new parameters etc. Very useful piece of software.
reply
    Bookmark Topic Watch Topic
  • New Topic