How to debug HTTP request?

What's a quick way represent an HTTP request that has been made from a Linux system so others can repeat the request on their own Linux machines for debugging purposes?

  • When working with third-party HTTP API bugs, I often want to export the exact HTTP request sent from my system so that the API designer can repeat the request I'm making for debugging purposes. To help them replicate my request, I usually construct a cURL command manually (by inspecting what my application is sending), that the API programmer can run, but this can be tedious and is prone to mistakes.  (I work with a lot of different third-party APIs, most of which have some bugs at some point.) I envision a better process where I could use something like *tcpdump* to see the requests that have been made from my Linux server, and then perhaps use another tool to pick out the specific request and generate a CURL command from it (or something that every Linux user can use to manipulate and submit an HTTP request).

  • Answer:

    Apologies because this my company's product, but please try the Apigee Console: Open up a "generic" console here: https://apigee.com/console/others Put your URL in the "resource" bar and send the request Take a look at the response Click "Snapshot" and you get a URL like the following that you can share with your friends: https://snap.apigee.com/y2HxcN

Gregory Brail at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.