curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. 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 himself.

config file syntax

From: jacques granduel via curl-users <curl-users_at_lists.haxx.se>
Date: Fri, 21 Jul 2023 12:56:14 +0200

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
Received on 2023-07-21