D:/opendownloadmanager/ODM-1.x/InetFile/cURL_lib/http.h File Reference

Go to the source code of this file.

Defines

#define CURLAUTH_PICKNONE   (1<<30)
#define MAX_INITIAL_POST_SIZE   (64*1024)
#define TINY_INITIAL_POST_SIZE   1024

Functions

bool Curl_compareheader (char *headerline, const char *header, const char *content)
CURLcode Curl_proxyCONNECT (struct connectdata *conn, int tunnelsocket, char *hostname, int remote_port)
CURLcode Curl_http (struct connectdata *conn, bool *done)
CURLcode Curl_http_done (struct connectdata *, CURLcode, bool premature)
CURLcode Curl_http_connect (struct connectdata *conn, bool *done)
CURLcode Curl_https_connecting (struct connectdata *conn, bool *done)
int Curl_https_getsock (struct connectdata *conn, curl_socket_t *socks, int numsocks)
void Curl_httpchunk_init (struct connectdata *conn)
CHUNKcode Curl_httpchunk_read (struct connectdata *conn, char *datap, ssize_t length, ssize_t *wrote)
void Curl_http_auth_stage (struct SessionHandle *data, int stage)
CURLcode Curl_http_input_auth (struct connectdata *conn, int httpcode, char *header)
CURLcode Curl_http_auth_act (struct connectdata *conn)
int Curl_http_should_fail (struct connectdata *conn)


Define Documentation

#define CURLAUTH_PICKNONE   (1<<30)

Definition at line 36 of file http.h.

Referenced by pickoneauth().

#define MAX_INITIAL_POST_SIZE   (64*1024)

Definition at line 39 of file http.h.

Referenced by Curl_http().

#define TINY_INITIAL_POST_SIZE   1024

Definition at line 43 of file http.h.

Referenced by Curl_http().


Function Documentation

bool Curl_compareheader ( char *  headerline,
const char *  header,
const char *  content 
)

Definition at line 1054 of file http.c.

References FALSE, ISSPACE, strnequal, and TRUE.

Referenced by Curl_http(), Curl_proxyCONNECT(), and Curl_readwrite().

CURLcode Curl_http ( struct connectdata conn,
bool done 
)

Definition at line 1716 of file http.c.

References connectdata::dynamically_allocated_data::accept_encoding, add_buffer(), add_buffer_init(), add_buffer_send(), add_bufferf(), add_custom_headers(), connectdata::allocptr, UrlState::authhost, ConnectBits::authneg, UrlState::authproxy, connectdata::bits, UrlState::buffer, BUFSIZE, SessionHandle::change, checkheaders(), UserDefined::cookie, connectdata::dynamically_allocated_data::cookiehost, SessionHandle::cookies, count, Curl_compareheader(), Curl_cookie_freelist(), Curl_cookie_getlist(), Curl_formclean(), Curl_formconvert(), Curl_FormInit(), Curl_formpostheader(), Curl_FormReader(), Curl_getFormData(), Curl_http_output_auth(), CURL_HTTP_VERSION_1_0, CURL_LOCK_ACCESS_SINGLE, CURL_LOCK_DATA_COOKIE, Curl_month, Curl_pgrsSetUploadSize(), Curl_safefree(), Curl_setup_transfer(), Curl_share_lock(), Curl_share_unlock(), curl_strequal(), CURL_TIMECOND_IFMODSINCE, CURL_TIMECOND_IFUNMODSINCE, CURL_TIMECOND_LASTMOD, Curl_wkday, CURLE_HTTP_POST_ERROR, CURLE_OK, CURLE_OUT_OF_MEMORY, CURLE_PARTIAL_FILE, CURLE_READ_ERROR, UserDefined::customrequest, connectdata::data, DEBUGASSERT, hostname::dispname, UserDefined::encoding, expect100(), UrlState::expect100header, failf, FALSE, UrlState::first_host, FIRSTSOCKET, HTTP::form, FORMAT_OFF_T, connectdata::fread, UserDefined::fread, connectdata::fread_in, free, connectdata::dynamically_allocated_data::host, connectdata::host, HandleData::http, UserDefined::httppost, ConnectBits::httpproxy, UserDefined::httpreq, HTTPREQ_GET, HTTPREQ_HEAD, HTTPREQ_LAST, HTTPREQ_NONE, HTTPREQ_POST, HTTPREQ_POST_FORM, HTTPREQ_PUT, UserDefined::httpversion, UserDefined::in, UserDefined::infilesize, SessionHandle::info, ConnectBits::ipv6_ip, ISSPACE, malloc, MAX_INITIAL_POST_SIZE, auth::multi, Cookie::name, hostname::name, Cookie::next, ConnectBits::no_body, NULL, HTTP::p_accept, HTTP::p_pragma, HandleData::path, PORT_HTTP, PORT_HTTPS, HTTP::postdata, UserDefined::postfields, UserDefined::postfieldsize, HTTP::postsize, PROT_FTP, PROT_HTTP, PROT_HTTPS, HandleData::proto, connectdata::protocol, connectdata::dynamically_allocated_data::proxyuserpwd, HandleData::range, connectdata::dynamically_allocated_data::rangeline, HTTP::readbytecount, readmoredata(), connectdata::dynamically_allocated_data::ref, DynamicStatic::referer, connectdata::remote_port, SessionHandle::reqdata, PureInfo::request_size, HandleData::resume_from, HTTP::sending, HTTP::sendit, SessionHandle::set, SessionHandle::state, UrlState::this_is_a_follow, UserDefined::timecondition, UserDefined::timevalue, TINY_INITIAL_POST_SIZE, TRUE, ConnectBits::tunnel_proxy, connectdata::dynamically_allocated_data::uagent, UserDefined::upload, ConnectBits::upload_chunky, DynamicStatic::url, DynamicStatic::url_alloc, HandleData::use_range, UserDefined::useragent, connectdata::dynamically_allocated_data::userpwd, Cookie::value, and HTTP::writebytecount.

Referenced by CreateConnection().

CURLcode Curl_http_auth_act ( struct connectdata conn  ) 

void Curl_http_auth_stage ( struct SessionHandle data,
int  stage 
)

CURLcode Curl_http_connect ( struct connectdata conn,
bool done 
)

CURLcode Curl_http_done ( struct connectdata ,
CURLcode  ,
bool  premature 
)

CURLcode Curl_http_input_auth ( struct connectdata conn,
int  httpcode,
char *  header 
)

int Curl_http_should_fail ( struct connectdata conn  ) 

Curl_http_should_fail() determines whether an HTTP response has gotten us into an error state or not.

Parameters:
conn all information about the current connection
Return values:
0 communications should continue
1 communications should not continue

Definition at line 678 of file http.c.

References UrlState::authproblem, connectdata::bits, connectdata::data, DEBUGASSERT, UserDefined::http_fail_on_error, Curl_transfer_keeper::httpcode, UserDefined::httpreq, HTTPREQ_GET, infof, HandleData::keep, HandleData::newurl, ConnectBits::proxy_user_passwd, SessionHandle::reqdata, HandleData::resume_from, SessionHandle::set, SessionHandle::state, TRUE, and ConnectBits::user_passwd.

Referenced by Curl_http_auth_act(), and Curl_readwrite().

void Curl_httpchunk_init ( struct connectdata conn  ) 

CHUNKcode Curl_httpchunk_read ( struct connectdata conn,
char *  datap,
ssize_t  length,
ssize_t *  wrote 
)

CURLcode Curl_https_connecting ( struct connectdata conn,
bool done 
)

int Curl_https_getsock ( struct connectdata conn,
curl_socket_t socks,
int  numsocks 
)

Referenced by CreateConnection().

CURLcode Curl_proxyCONNECT ( struct connectdata conn,
int  tunnelsocket,
char *  hostname,
int  remote_port 
)


Generated on Sun May 25 00:20:06 2008 by  doxygen 1.5.6