24 Oct
2010
24 Oct
'10
6:40 p.m.
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.