How to dynamically generate UUID in curl command (like macros) before sending http request?
Евгений Морозов via curl-users <[email protected]>
| Newsgroups | gmane.comp.web.curl.general |
|---|---|
| Message-ID | <CAP-Czj+2Vi5nViG_2YPxz0+Bv37g8LgV=j9fuXhdKRGsyvRPyA@mail.gmail.com> |
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