config file syntax

jacques granduel via curl-users <[email protected]>
Newsgroups gmane.comp.web.curl.general
Message-ID <CAF9BwxPrODynMj-vN5D4nPMk52x3QR9JdvsQgNiNkf3E7Qb8yA@mail.gmail.com>
Hi,

I still struggle with the syntax of curl config file.

Someone made a follow up to a curl question I posted on StackOverflow (
https://stackoverflow.com/questions/71244217/how-to-use-curl-z-parallel-effectively
).
What would be the syntax for using different headers per url?

Is this snippet the right syntax as I thought?

header = "Accept: application/json"
url = http://a.com
header = "Accept: application/xml"
url = http://b.com

I made a un unsuccessful test, so my config file must be wrong. How is it
parsed? Should header be after url??

Thanks,

-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.