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.

How to dynamically generate UUID in curl command (like macros) before sending http request?

From: Евгений Морозов via curl-users <curl-users_at_lists.haxx.se>
Date: Fri, 24 May 2024 20:46:01 +0300

I want to send POST http request via curl in Windows command line app.
There is *x-client-request-id* header in request
I want to create curl command that dynamically generate UUID for this header

Something like that:
curl -X POST -H "x-client-request-id: {{UUID}}" -d '{"a": 1}' https:/
example.com

This doesn't work:
${uuid}
{{$uuid}}


--
James Frost


-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2024-05-24