24 Oct
2010
24 Oct
'10
7:14 p.m.
On Sun, Oct 24, 2010 at 08:40:08PM +0200, Reimar Döffinger wrote:
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.
Done. -- Clément B. Not sent from a jesusPhone.