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.

netrc Bearer Token Support?

From: Bastian Jesuiter via curl-users <curl-users_at_lists.haxx.se>
Date: Tue, 16 Sep 2025 13:32:31 +0200

Hi,

I am regularly using bearer tokens to access multiple apis instead of basic
auth.

The netrc file only seems to support basic auth,
Would it be possible (for curl) to parse the "password" field as "Bearer"
token, either implicitly or explicitly (by adding the bearer at the
beginning of the password field), when the login field is missing?

Alternatively are there RFCs for the dotnetrc file where the parsing rules
are defined?
Or is this more of a silent agreement for the format?

A lot of services are transitioning away from basic auth.

Thanks,

Bastian


-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2025-09-16