views:

5486

answers:

15

I'm in the need of a tool to help debugging a webapp - anyone know of some simple client tools that allow you to easily send and construct customizable POST/GET/PUT/DELETE HTTP requests ?

+8  A: 

Fidller (free web debugger) allows you to write HTTP requests to webapps.

Tamar
+5  A: 

For windows, WFetch is your quick and dirty answer. Some information on its use here.

Christopher_G_Lewis
Just what I needed, thanks.
nos
Is there anything similar for the Mac?
adib
+5  A: 

RESTClient is a Firefox extension

Damo
+3  A: 

The grandaddy of them all is telnet. Just open a connection on Port 80 and type in the raw commands. Most of the basic Internet protocols such as HTTP and mail are text-based and this is part of the reason why.

Of course, if you prefer something more abstract, there are also command-line utilities like wget and curl.

Tim H
telnet + dos (or bash) makes for a fun way to surf the internet
Matthew Whited
+1  A: 

wget is very versatile. TIP: use wget -d to get full debug info about the request and response

Nir Levy
A: 

For windows OS I recommend to use this HTTP request test tool

Michael
@Michael: you may want to read http://meta.stackoverflow.com/questions/40696/what-to-do-about-late-answers-if-anything, where I've used your answer as an example.
John Saunders
+1  A: 

Firefox add-on Tamper Data.

drorhan
+12  A: 

Some curl examples:

GET

curl -HAccept:text/plain http://example.com/base

PUT

curl -XPUT -HContent-type:text/plain --data "stuff:morestuff" http://example.com/base?param=val

DELETE

curl -XDELETE http://example.com/base/user/123

POST

curl -d "param1=value1&param2=value2" http://example.com/base/
antonj
Another curl tip: To send a POST request whose data is not in `application/x-www-urlencoded` format, use the `--data-binary` option instead of `--data`.
Kevin Reid
+2  A: 

hurl.it for those who don't want to download anything

Nano
A: 

For non-automated testing, the Live HTTP Headers add-on for Firefox can be used to alter and replay requests. (It can also change the request method; though the request method dropdown only shows GET and POST, one can actually type whatever one likes, even invalid methods. One could also type the whole request payload, but I assume the other answers offer better solutions for that.)

The online Web-Sniffer might be useful to see a response without rendering it.

(The Web Developer Toolbar can easily change the method attribute in a <form> itself, which after submitting once might make it easy to change request parameters, in some limited cases. One can achieve the same with any tool like Firebug or Web Inspector.)

Arjan
A: 

You can try to use this HTTP Post tool that use different method also

Tamir
A: 

I run into free tool to send http post testing tool for windows you can try it. It send text from a file or by size.

Roy Mil
+1  A: 

The burp proxy tool is easy to use from portswigger.net. It is external to the browser which is nice. Some of the other tools that integrate into the browser as a plug-in have advantages too.

You can see all http/https requests and responses and edit them if desired.

A: 

@adib - You mentioned a utility for the Mac. I've been using Http Client (http://ditchnet.org/httpclient/) and have had no problems with it at all. Supports GET, POST, PUT, DELETE, TRACE, OPTIONS, HEAD, CONNECT.

Hope that helps :)

DocD
A: 

yes httpclient is great but is missing proxy support which is very handy

tigaszzz