mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-21 06:19:36 +08:00
Add UseBasicAuth() which allows to avoid an extra round trip to the server due to trying to access a protected URL without providing the credentials first and only sending them in response to 401 response. For libcurl, simply set authentication method to CURLAUTH_BASIC and let the library handle everything. For the other backends, add the required "Authorization" header ourselves, as they don't seem to have any support for doing preemptive authentication on their own.