RE: Assistance with Capturing cURL Request using tcpdump

Bill Mercer via curl-users <[email protected]> Wed, 25 Sep 2024 19:00:29 +0000
Newsgroups gmane.comp.web.curl.general
Message-ID <DS7PR15MB63611FB8683E08AB31954D5DBB692@DS7PR15MB6361.namprd15.prod.outlook.com>
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?

Postman provides a built-in code snippet generator which can create a curl command to reproduce a postman request.
It has configurable options so you can generate a curl command for either linux or windows environments.

Open a postman request, then on the right side, look for the </> symbol, you can generate code for various languages, including curl.

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