[tbnl-devel] faking *request* for testing

Toby tobia.conforto at linux.it
Wed Jun 14 14:15:05 UTC 2006


Austin Haas wrote:
> Does anyone know of a way to fake a *request* to test a handler?

I find wget useful in these cases:  wget -qO- http://your.url/here
Useful options: -qO- displays the output in the console, -S shows the
response headers instead (you cannot use it with -q)
If you need to fake a POST, use: --post-data='field=value&field2=val2'


Toby

-- 
Pascal is for building pyramids—imposing, breathtaking 
structures built by armies pushing heavy blocks into place.
Lisp is for building organisms.		—Alan Perlis



More information about the Tbnl-devel mailing list