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: Capture the cURL (https://curl.se/) request (header and body) initiated by Postman REST API client

From: Daniel Stenberg via curl-users <curl-users_at_lists.haxx.se>
Date: Tue, 24 Sep 2024 23:45:24 +0200 (CEST)

On Tue, 24 Sep 2024, Kaushal Shriyan via curl-users wrote:

> I am using a postman to invoke a REST API call. Is there a way to capture
> the cURL (https://curl.se/) request (header and body) initiated by Postman
> REST API client to the Application server which is running RHEL 8.10 OS to
> the backend server/system?

I don't think postman uses curl natively. But I think I have seen people
mention as "copy as curl" option?

If not, I propose you just tell it to send its request to a http server + port
where you run nc -l which when will display the full request.

Then you can copy that full request into "h2c" that converts it to a curl
command line for you: https://curl.se/h2c/

-- 
  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | https://curl.se/support.html
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2024-09-24