From 6a46aea720ddc40d6c1c1155e34e4c3e90b9e7df Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Sat, 6 Apr 2002 01:15:53 +0000 Subject: Don't get the statuscode here anymore. (http_method_invoke): Use a 2002-04-05 Jeffrey Stedfast * camel-http-stream.c (http_get_headers): Don't get the statuscode here anymore. (http_method_invoke): Use a User-Agent header and do basic proxy authentication. (stream_read): Handle redirects. (camel_http_stream_set_user_agent): New function to allow client to set the User-Agent string. (camel_http_stream_set_proxy): New function for setting the proxy server. (camel_http_stream_set_proxy_authrealm): New function for setting the proxy auth realm. (camel_http_stream_set_proxy_authpass): New function for setting the proxy auth password. svn path=/trunk/; revision=16367 --- camel/camel-http-stream.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'camel/camel-http-stream.h') diff --git a/camel/camel-http-stream.h b/camel/camel-http-stream.h index 98a470104c..40733662ef 100644 --- a/camel/camel-http-stream.h +++ b/camel/camel-http-stream.h @@ -66,6 +66,15 @@ struct _CamelHttpStream { CamelService *service; CamelURL *url; + char *user_agent; + + /* proxy info */ + CamelURL *proxy; + char *authrealm; + char *authpass; + + int statuscode; + CamelStream *raw; }; @@ -81,6 +90,12 @@ CamelType camel_http_stream_get_type (void); /* public methods */ CamelStream *camel_http_stream_new (CamelHttpMethod method, CamelService *service, CamelURL *url); +void camel_http_stream_set_user_agent (CamelHttpStream *http_stream, const char *user_agent); + +void camel_http_stream_set_proxy (CamelHttpStream *http_stream, const char *proxy_url); +void camel_http_stream_set_proxy_authrealm (CamelHttpStream *http_stream, const char *proxy_authrealm); +void camel_http_stream_set_proxy_authpass (CamelHttpStream *http_stream, const char *proxy_authpass); + CamelContentType *camel_http_stream_get_content_type (CamelHttpStream *http_stream); #ifdef __cplusplus -- cgit v1.2.3