[MPlayer-dev-eng] [PATCH 2/7] Use Proxy-Authorization instead of Authorization for proxy auth

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Oct 24 20:40:08 CEST 2010


On Mon, Oct 18, 2010 at 12:05:52PM +0200, Clément Bœsch wrote:
> +int
> +http_add_basic_authentication( HTTP_header_t *http_hdr, const char *username, const char *password ) {
> +	return http_add_authentication(http_hdr, username, password, "Authorization: Basic ");
> +}
> +
> +int
> +http_add_basic_proxy_authentication( HTTP_header_t *http_hdr, const char *username, const char *password ) {
> +	return http_add_authentication(http_hdr, username, password, "Proxy-Authorization: Basic ");
> +}

It might slightly nicer to only have "Authorization" and "Proxy-Authorization" as strings,
seems likely to make future changes simpler.


More information about the MPlayer-dev-eng mailing list