381 List *headers,
Octstr *body,
int follow,
void *
id,
394 #define http_receive_result(caller, status, final_url, headers, body) \ 395 http_receive_result_real(caller, status, final_url, headers, body, 1) 602 const char *
file,
long line,
const char *func);
603 #define http_header_find_first(headers, name) \ 604 gw_claim_area(http_header_find_first_real((headers), (name), __FILE__, __LINE__, __func__)) Octstr * http_request_url(HTTPClient *client)
int http_open_port_if(int port, int ssl, Octstr *interface)
Octstr * http_header_find_first_real(List *headers, char *name, const char *file, long line, const char *func)
List * http_header_split_value(Octstr *value)
int http_get_real(int method, Octstr *url, List *request_headers, Octstr **final_url, List **reply_headers, Octstr **reply_body)
HTTPURLParse * http_urlparse_create(void)
void http_cgivar_dump_into(List *cgiargs, Octstr *os)
void http_start_request(HTTPCaller *caller, int method, Octstr *url, List *headers, Octstr *body, int follow, void *id, Octstr *certkeyfile)
void http_header_get(List *headers, long i, Octstr **name, Octstr **value)
void http_append_headers(List *to, List *from)
void http_close_proxy(void)
HTTPClient * http_accept_request(int port, Octstr **client_ip, Octstr **url, List **headers, Octstr **body, List **cgivars)
static void client(int port)
static HTTPCaller * caller
List * http_header_find_all(List *headers, char *name)
int http_status_class(int code)
void http_header_add(List *headers, char *name, char *contents)
int http_name2method(Octstr *method)
void http_cgivar_dump(List *cgiargs)
Octstr * http_get_header_parameter(Octstr *value, Octstr *parameter)
void http_close_client(HTTPClient *client)
long http_header_remove_all(List *headers, char *name)
void http_header_combine(List *old_headers, List *new_headers)
HTTPURLParse * parse_url(Octstr *url)
int http_open_port(int port, int ssl)
void http_send_reply(HTTPClient *client, int status, List *headers, Octstr *body)
int http_type_accepted(List *headers, char *type)
void http_set_client_timeout(long timeout)
void parse_dump(HTTPURLParse *p)
void http_destroy_cgiargs(List *args)
void http_header_dump(List *headers)
void http_header_pack(List *headers)
HTTPCaller * http_caller_create(void)
void http_add_basic_auth(List *headers, Octstr *username, Octstr *password)
int http_method(HTTPClient *client)
Octstr * http_header_value(List *headers, Octstr *header)
List * http_create_empty_headers(void)
long http_header_quoted_string_len(Octstr *header, long pos)
void http_remove_hop_headers(List *headers)
void http_set_interface(const Octstr *our_host)
void http_close_all_ports(void)
int http_charset_accepted(List *headers, char *charset)
Octstr * http_cgi_variable(List *list, char *name)
void * http_receive_result_real(HTTPCaller *caller, int *status, Octstr **final_url, List **headers, Octstr **body, int blocking)
void http_header_get_content_type(List *headers, Octstr **type, Octstr **charset)
List * http_header_duplicate(List *headers)
void http_close_port(int port)
void http_use_proxy(Octstr *hostname, int port, int ssl, List *exceptions, Octstr *username, Octstr *password, Octstr *exceptions_regex)
void http_set_server_timeout(int port, long timeout)
void http_caller_destroy(HTTPCaller *caller)
void http_header_mark_transformation(List *headers, Octstr *new_body, Octstr *new_type)
void http_destroy_headers(List *headers)
void http_urlparse_destroy(HTTPURLParse *p)
void parse_cgivars(List *cgivars, Octstr *pairs)
char * http_method2name(int method)
void http_caller_signal_shutdown(HTTPCaller *caller)
List * http_header_split_auth_value(Octstr *value)