Does anyone know of a way to fake a *request* to test a handler?
The browser is crashing on a particular response, so it would be nice to be able to see the response in Slime.
Thanks.
-austin
Austin Haas wrote:
Does anyone know of a way to fake a *request* to test a handler?
The browser is crashing on a particular response, so it would be nice to be able to see the response in Slime.
If you set the global variable tbnl:*debug-mode* to t or any non-nil value, tbnl will keep the last request made to the server in the global variable tbnl:*request* where you can manually inspect it or call the dispatcher/handlers manually. This requires the browser to make the request, but by the sounds of it it's crashing on receiving the response.
~phil
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