Mike2012
Mike2012

Reputation: 7725

Http request tool that will show the actual request (trouble with the Firefox plugin Poster)

I am trying to connect my common lisp application to a Drupal driven server site using http-post and I am having trouble debugging my request. When I use the Firefox plugin Poster to make the request everything works fine but when I make the request from inside my common lisp application I get incorrect behavior. I would really like to see the http-request produced by Poster but it seems to have no option for this, is there another little app that is similar but would show me the actual Request? Or is there someway to get this out of Poster.

Upvotes: 1

Views: 318

Answers (2)

Miron Brezuleanu
Miron Brezuleanu

Reputation: 3060

It sounds like you could use a debugging HTTP proxy. Some suggestions in HTTP debugging proxy for Linux and Mac.

You could also use Wireshark.

As for the Common Lisp part, what library are you using? Are you logging in first? If using Drakma, are you using a cookie jar to pass the session cookies from one request to the other? (see the examples on the documentation page, search for (make-instance 'cookie-jar))

Upvotes: 3

stou
stou

Reputation: 63

Are you logged in to the Drupal site? Then you might not have the correct session id in lisp. You could try making the same request you did in Poster using curl from a command line.

Upvotes: 2

Related Questions