#include "config.h"#include "util.h"#include "sock.h"#include "httpparser.h"Go to the source code of this file.
Defines | |
| #define | HTTP_DEFAULT_TIMEOUT 30 |
Functions | |
| int | http_CancelHttpGet (IN void *Handle) |
| int | http_FixUrl (IN uri_type *url, OUT uri_type *fixed_url) |
| int | http_FixStrUrl (IN char *urlstr, IN int urlstrlen, OUT uri_type *fixed_url) |
| int | http_Connect (IN uri_type *destination_url, OUT uri_type *url) |
| int | http_RecvMessage (IN SOCKINFO *info, OUT http_parser_t *parser, IN http_method_t request_method, IN OUT int *timeout_secs, OUT int *http_error_code) |
| int | http_SendMessage (IN SOCKINFO *info, IN OUT int *timeout_secs, IN const char *fmt,...) |
| int | http_RequestAndResponse (IN uri_type *destination, IN const char *request, IN size_t request_length, IN http_method_t req_method, IN int timeout_secs, OUT http_parser_t *response) |
| int | http_Download (IN const char *url, IN int timeout_secs, OUT char **document, OUT int *doc_length, OUT char *content_type) |
| int | http_WriteHttpPost (IN void *Handle, IN char *buf, IN off_t *size, IN int timeout) |
| int | http_CloseHttpPost (IN void *Handle, IN OUT int *httpStatus, IN int timeout) |
| int | http_OpenHttpPost (IN const char *url_str, IN OUT void **Handle, IN const char *contentType, IN off_t contentLength, IN int timeout) |
| int | http_ReadHttpGet (IN void *Handle, IN OUT char *buf, IN OUT off_t *size, IN int timeout) |
| int | http_HttpGetProgress (IN void *Handle, OUT off_t *length, OUT off_t *total) |
| int | http_CloseHttpGet (IN void *Handle) |
| int | http_OpenHttpGet (IN const char *url_str, IN OUT void **Handle, IN OUT char **contentType, OUT off_t *contentLength, OUT int *httpStatus, IN int timeout) |
| int | http_OpenHttpGetProxy (IN const char *url_str, IN const char *proxy_str, IN OUT void **Handle, IN OUT char **contentType, OUT off_t *contentLength, OUT int *httpStatus, IN int timeout) |
| int | http_SendStatusResponse (IN SOCKINFO *info, IN int http_status_code, IN int request_major_version, IN int request_minor_version) |
| int | http_MakeMessage (INOUT membuffer *buf, IN int http_major_version, IN int http_minor_version, IN const char *fmt,...) |
| void | http_CalcResponseVersion (IN int request_major_vers, IN int request_minor_vers, OUT int *response_major_vers, OUT int *response_minor_vers) |
| int | http_OpenHttpGetEx (IN const char *url_str, IN OUT void **Handle, IN OUT char **contentType, OUT off_t *contentLength, OUT int *httpStatus, IN int lowRange, IN int highRange, IN int timeout) |
| void | get_sdk_info (OUT char *info) |
| #define HTTP_DEFAULT_TIMEOUT 30 |
Definition at line 62 of file httpreadwrite.h.
| void get_sdk_info | ( | OUT char * | info | ) |
| void http_CalcResponseVersion | ( | IN int | request_major_vers, | |
| IN int | request_minor_vers, | |||
| OUT int * | response_major_vers, | |||
| OUT int * | response_minor_vers | |||
| ) |
| int http_CancelHttpGet | ( | IN void * | Handle | ) |
| int http_CloseHttpGet | ( | IN void * | Handle | ) |
| int http_CloseHttpPost | ( | IN void * | Handle, | |
| IN OUT int * | httpStatus, | |||
| IN int | timeout | |||
| ) |
| int http_Download | ( | IN const char * | url, | |
| IN int | timeout_secs, | |||
| OUT char ** | document, | |||
| OUT int * | doc_length, | |||
| OUT char * | content_type | |||
| ) |
| int http_FixStrUrl | ( | IN char * | urlstr, | |
| IN int | urlstrlen, | |||
| OUT uri_type * | fixed_url | |||
| ) |
| int http_HttpGetProgress | ( | IN void * | Handle, | |
| OUT off_t * | length, | |||
| OUT off_t * | total | |||
| ) |
| int http_MakeMessage | ( | INOUT membuffer * | buf, | |
| IN int | http_major_version, | |||
| IN int | http_minor_version, | |||
| IN const char * | fmt, | |||
| ... | ||||
| ) |
| int http_OpenHttpGet | ( | IN const char * | url_str, | |
| IN OUT void ** | Handle, | |||
| IN OUT char ** | contentType, | |||
| OUT off_t * | contentLength, | |||
| OUT int * | httpStatus, | |||
| IN int | timeout | |||
| ) |
| int http_OpenHttpGetEx | ( | IN const char * | url_str, | |
| IN OUT void ** | Handle, | |||
| IN OUT char ** | contentType, | |||
| OUT off_t * | contentLength, | |||
| OUT int * | httpStatus, | |||
| IN int | lowRange, | |||
| IN int | highRange, | |||
| IN int | timeout | |||
| ) |
| int http_OpenHttpGetProxy | ( | IN const char * | url_str, | |
| IN const char * | proxy_str, | |||
| IN OUT void ** | Handle, | |||
| IN OUT char ** | contentType, | |||
| OUT off_t * | contentLength, | |||
| OUT int * | httpStatus, | |||
| IN int | timeout | |||
| ) |
| int http_OpenHttpPost | ( | IN const char * | url_str, | |
| IN OUT void ** | Handle, | |||
| IN const char * | contentType, | |||
| IN off_t | contentLength, | |||
| IN int | timeout | |||
| ) |
| int http_ReadHttpGet | ( | IN void * | Handle, | |
| IN OUT char * | buf, | |||
| IN OUT off_t * | size, | |||
| IN int | timeout | |||
| ) |
| int http_RecvMessage | ( | IN SOCKINFO * | info, | |
| OUT http_parser_t * | parser, | |||
| IN http_method_t | request_method, | |||
| IN OUT int * | timeout_secs, | |||
| OUT int * | http_error_code | |||
| ) |
| int http_RequestAndResponse | ( | IN uri_type * | destination, | |
| IN const char * | request, | |||
| IN size_t | request_length, | |||
| IN http_method_t | req_method, | |||
| IN int | timeout_secs, | |||
| OUT http_parser_t * | response | |||
| ) |
| int http_SendMessage | ( | IN SOCKINFO * | info, | |
| IN OUT int * | timeout_secs, | |||
| IN const char * | fmt, | |||
| ... | ||||
| ) |
| int http_SendStatusResponse | ( | IN SOCKINFO * | info, | |
| IN int | http_status_code, | |||
| IN int | request_major_version, | |||
| IN int | request_minor_version | |||
| ) |
| int http_WriteHttpPost | ( | IN void * | Handle, | |
| IN char * | buf, | |||
| IN off_t * | size, | |||
| IN int | timeout | |||
| ) |
1.6.1