curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder Daniel himself.

RE: Assistance with Capturing cURL Request using tcpdump

From: Bill Mercer via curl-users <curl-users_at_lists.haxx.se>
Date: Wed, 25 Sep 2024 19:00:29 +0000


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
Received on 2024-09-25