Home > Web Development > Debug your outbound POST and GET requests

Debug your outbound POST and GET requests

I work a lot with different types of web services. I find when I’m building an application that has to post data off to a remote service that it can be difficult to debug where the problems are. I can’t always see an exact copy of the HTTP request that I am sending, and therefore how the remote service sees my call. I created a simple little app that when called will return exactly what it was sent. You can pass in variables in a POST or GET, and it will just spit them right back at you along with whatever HTTP headers were sent by your client.

If you point your browser over to http://vallery.net/postback/index.php you can see it in action. It will report back to you exactly how your browser is identifying itself, including any cookies you might have received from my word press blog!

Now the next time you are writing an application and you want to debug your outbound posts, just send them over to the above URL and it will respond with exactly what it received.

Pretty cool!

Categories: Web Development Tags: , , , ,
  1. anon
    May 17th, 2007 at 14:14 | #1

    Just use wireshark, aka ethereal. Quick, easy and you get to see the actual response too.

  1. No trackbacks yet.