#include "curl_setup.h"
#include "urldata.h"
#include <curl/curl.h>
#include "transfer.h"
#include "sendf.h"
#include "formdata.h"
#include "progress.h"
#include "curl_base64.h"
#include "cookie.h"
#include "vauth/vauth.h"
#include "vtls/vtls.h"
#include "http_digest.h"
#include "http_ntlm.h"
#include "curl_ntlm_wb.h"
#include "http_negotiate.h"
#include "url.h"
#include "share.h"
#include "hostip.h"
#include "http.h"
#include "select.h"
#include "parsedate.h"
#include "strtoofft.h"
#include "multiif.h"
#include "strcase.h"
#include "content_encoding.h"
#include "http_proxy.h"
#include "warnless.h"
#include "non-ascii.h"
#include "conncache.h"
#include "pipeline.h"
#include "http2.h"
#include "connect.h"
#include "strdup.h"
#include "curl_printf.h"
#include "curl_memory.h"
#include "memdebug.h"
Go to the source code of this file.
Defines | |
#define | HEADER1 k->p /* no conversion needed, just use k->p */ |
#define | https_connecting(x, y) CURLE_COULDNT_CONNECT |
Enumerations | |
enum | proxy_use { HEADER_SERVER, HEADER_PROXY, HEADER_CONNECT } |
Functions | |
static bool | checkhttpprefix (struct Curl_easy *data, const char *s) |
static bool | checkprotoprefix (struct Curl_easy *data, struct connectdata *conn, const char *s) |
static bool | checkrtspprefix (struct Curl_easy *data, const char *s) |
CURLcode | Curl_add_buffer (Curl_send_buffer *in, const void *inptr, size_t size) |
void | Curl_add_buffer_free (Curl_send_buffer *buff) |
Curl_send_buffer * | Curl_add_buffer_init (void) |
CURLcode | Curl_add_buffer_send (Curl_send_buffer *in, struct connectdata *conn, long *bytes_written, size_t included_body_bytes, int socketindex) |
CURLcode | Curl_add_bufferf (Curl_send_buffer *in, const char *fmt,...) |
CURLcode | Curl_add_custom_headers (struct connectdata *conn, bool is_connect, Curl_send_buffer *req_buffer) |
CURLcode | Curl_add_timecondition (struct Curl_easy *data, Curl_send_buffer *req_buffer) |
char * | Curl_checkheaders (const struct connectdata *conn, const char *thisheader) |
char * | Curl_checkProxyheaders (const struct connectdata *conn, const char *thisheader) |
bool | Curl_compareheader (const char *headerline, const char *header, const char *content) |
char * | Curl_copy_header_value (const char *header) |
CURLcode | Curl_http (struct connectdata *conn, bool *done) |
CURLcode | Curl_http_auth_act (struct connectdata *conn) |
CURLcode | Curl_http_connect (struct connectdata *conn, bool *done) |
CURLcode | Curl_http_done (struct connectdata *conn, CURLcode status, bool premature) |
CURLcode | Curl_http_input_auth (struct connectdata *conn, bool proxy, const char *auth) |
CURLcode | Curl_http_output_auth (struct connectdata *conn, const char *request, const char *path, bool proxytunnel) |
CURLcode | Curl_http_readwrite_headers (struct Curl_easy *data, struct connectdata *conn, ssize_t *nread, bool *stop_reading) |
CURLcode | Curl_http_setup_conn (struct connectdata *conn) |
static CURLcode | expect100 (struct Curl_easy *data, struct connectdata *conn, Curl_send_buffer *req_buffer) |
static CURLcode | header_append (struct Curl_easy *data, struct SingleRequest *k, size_t length) |
static int | http_getsock_do (struct connectdata *conn, curl_socket_t *socks, int numsocks) |
static CURLcode | http_output_basic (struct connectdata *conn, bool proxy) |
static CURLcode | http_perhapsrewind (struct connectdata *conn) |
static int | http_should_fail (struct connectdata *conn) |
static CURLcode | output_auth_headers (struct connectdata *conn, struct auth *authstatus, const char *request, const char *path, bool proxy) |
static bool | pickoneauth (struct auth *pick) |
static void | print_http_error (struct Curl_easy *data) |
static size_t | readmoredata (char *buffer, size_t size, size_t nitems, void *userp) |
static bool | use_http_1_1plus (const struct Curl_easy *data, const struct connectdata *conn) |
Variables | |
struct Curl_handler | Curl_handler_http |
#define https_connecting | ( | x, | |
y | |||
) | CURLE_COULDNT_CONNECT |
enum proxy_use |
static bool checkhttpprefix | ( | struct Curl_easy * | data, |
const char * | s | ||
) | [static] |
static bool checkprotoprefix | ( | struct Curl_easy * | data, |
struct connectdata * | conn, | ||
const char * | s | ||
) | [static] |
static bool checkrtspprefix | ( | struct Curl_easy * | data, |
const char * | s | ||
) | [static] |
CURLcode Curl_add_buffer | ( | Curl_send_buffer * | in, |
const void * | inptr, | ||
size_t | size | ||
) |
void Curl_add_buffer_free | ( | Curl_send_buffer * | buff | ) |
Curl_send_buffer* Curl_add_buffer_init | ( | void | ) |
CURLcode Curl_add_buffer_send | ( | Curl_send_buffer * | in, |
struct connectdata * | conn, | ||
long * | bytes_written, | ||
size_t | included_body_bytes, | ||
int | socketindex | ||
) |
CURLcode Curl_add_bufferf | ( | Curl_send_buffer * | in, |
const char * | fmt, | ||
... | |||
) |
CURLcode Curl_add_custom_headers | ( | struct connectdata * | conn, |
bool | is_connect, | ||
Curl_send_buffer * | req_buffer | ||
) |
CURLcode Curl_add_timecondition | ( | struct Curl_easy * | data, |
Curl_send_buffer * | req_buffer | ||
) |
char* Curl_checkheaders | ( | const struct connectdata * | conn, |
const char * | thisheader | ||
) |
char* Curl_checkProxyheaders | ( | const struct connectdata * | conn, |
const char * | thisheader | ||
) |
bool Curl_compareheader | ( | const char * | headerline, |
const char * | header, | ||
const char * | content | ||
) |
char* Curl_copy_header_value | ( | const char * | header | ) |
CURLcode Curl_http | ( | struct connectdata * | conn, |
bool * | done | ||
) |
CURLcode Curl_http_auth_act | ( | struct connectdata * | conn | ) |
CURLcode Curl_http_connect | ( | struct connectdata * | conn, |
bool * | done | ||
) |
CURLcode Curl_http_done | ( | struct connectdata * | conn, |
CURLcode | status, | ||
bool | premature | ||
) |
CURLcode Curl_http_input_auth | ( | struct connectdata * | conn, |
bool | proxy, | ||
const char * | auth | ||
) |
CURLcode Curl_http_output_auth | ( | struct connectdata * | conn, |
const char * | request, | ||
const char * | path, | ||
bool | proxytunnel | ||
) |
Curl_http_output_auth() setups the authentication headers for the host/proxy and the correct authentication method. conn->data->state.authdone is set to TRUE when authentication is done.
conn | all information about the current connection |
request | pointer to the request keyword |
path | pointer to the requested path |
proxytunnel | boolean if this is the request setting up a "proxy tunnel" |
CURLcode Curl_http_readwrite_headers | ( | struct Curl_easy * | data, |
struct connectdata * | conn, | ||
ssize_t * | nread, | ||
bool * | stop_reading | ||
) |
CURLcode Curl_http_setup_conn | ( | struct connectdata * | conn | ) |
static CURLcode expect100 | ( | struct Curl_easy * | data, |
struct connectdata * | conn, | ||
Curl_send_buffer * | req_buffer | ||
) | [static] |
static CURLcode header_append | ( | struct Curl_easy * | data, |
struct SingleRequest * | k, | ||
size_t | length | ||
) | [static] |
static int http_getsock_do | ( | struct connectdata * | conn, |
curl_socket_t * | socks, | ||
int | numsocks | ||
) | [static] |
static CURLcode http_output_basic | ( | struct connectdata * | conn, |
bool | proxy | ||
) | [static] |
static CURLcode http_perhapsrewind | ( | struct connectdata * | conn | ) | [static] |
static int http_should_fail | ( | struct connectdata * | conn | ) | [static] |
http_should_fail() determines whether an HTTP response has gotten us into an error state or not.
conn | all information about the current connection |
0 | communications should continue |
1 | communications should not continue |
static CURLcode output_auth_headers | ( | struct connectdata * | conn, |
struct auth * | authstatus, | ||
const char * | request, | ||
const char * | path, | ||
bool | proxy | ||
) | [static] |
static bool pickoneauth | ( | struct auth * | pick | ) | [static] |
static void print_http_error | ( | struct Curl_easy * | data | ) | [static] |
static size_t readmoredata | ( | char * | buffer, |
size_t | size, | ||
size_t | nitems, | ||
void * | userp | ||
) | [static] |
static bool use_http_1_1plus | ( | const struct Curl_easy * | data, |
const struct connectdata * | conn | ||
) | [static] |
struct Curl_handler Curl_handler_http |