00001
00002
00003
00004
00005 #ifndef __HTTP_H
00006 #define __HTTP_H
00007
00008 #ifndef CURL_DISABLE_HTTP
00009 bool Curl_compareheader(char *headerline,
00010 const char *header,
00011 const char *content);
00012
00013 CURLcode Curl_proxyCONNECT(struct connectdata *conn,
00014 int tunnelsocket,
00015 char *hostname, int remote_port);
00016
00017 CURLcode Curl_http(struct connectdata *conn, bool *done);
00018 CURLcode Curl_http_done(struct connectdata *, CURLcode, bool premature);
00019 CURLcode Curl_http_connect(struct connectdata *conn, bool *done);
00020 CURLcode Curl_https_connecting(struct connectdata *conn, bool *done);
00021 int Curl_https_getsock(struct connectdata *conn,
00022 curl_socket_t *socks,
00023 int numsocks);
00024
00025 void Curl_httpchunk_init(struct connectdata *conn);
00026 CHUNKcode Curl_httpchunk_read(struct connectdata *conn, char *datap,
00027 ssize_t length, ssize_t *wrote);
00028
00029 void Curl_http_auth_stage(struct SessionHandle *data, int stage);
00030 CURLcode Curl_http_input_auth(struct connectdata *conn,
00031 int httpcode, char *header);
00032 CURLcode Curl_http_auth_act(struct connectdata *conn);
00033
00034 int Curl_http_should_fail(struct connectdata *conn);
00035
00036 #define CURLAUTH_PICKNONE (1<<30)
00037
00038 #ifndef MAX_INITIAL_POST_SIZE
00039 #define MAX_INITIAL_POST_SIZE (64*1024)
00040 #endif
00041
00042 #ifndef TINY_INITIAL_POST_SIZE
00043 #define TINY_INITIAL_POST_SIZE 1024
00044 #endif
00045
00046 #endif
00047 #endif