Assistance with Capturing cURL Request using tcpdump

Kaushal Shriyan via curl-users <[email protected]> Tue, 24 Sep 2024 07:02:47 +0530
Newsgroups gmane.comp.web.curl.general
Message-ID <CAD7Ssm_1rTMPzgCxUbd_MvVrujNC07YVSfLWfkTZn+SFPTM+vg@mail.gmail.com>
Hi,

I am using Postman to invoke a REST API call. Is there a way to capture the
cURL (https://curl.se/) request (including headers and body) initiated by
the Postman REST API client to the application server running RHEL 8.10 OS,
and then to the backend server/system using tcpdump and analyze the packet
capture (.pcap) file in Wireshark?

The flow is as follows:
Postman → Application server → Proxy server → Backend server.

Headers: Contain metadata about the request, such as content type, user
agent, etc.
Body: Contains the data that we want to send (if any). Typically used with
POST and PUT methods.

Please guide me. Thanks in advance.

Best Regards,

Kaushal

-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html