curl-library
Re: Is setting a username/password in libcurl harmful if none is required?
From: Zakrzewski, Jakub <Jakub.Zakrzewski_at_scheer-group.com>
Date: Fri, 1 Jun 2018 13:18:55 +0000
Date: Fri, 1 Jun 2018 13:18:55 +0000
> My question is
> whether setting a username/password (even blank) can lead to
> authentication failure if none is required (particularly in the
> context of proxies).
My guess is most server will not care. Nevertheless, by setting the user name and password
you kinda force libcurl to send the Authorization header. If your server doesn't like it,
you'll have a problem. Apache seems to ignore it unless configured to use basic auth.
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-06-01