33 #ifndef GENLIB_NET_HTTP_HTTPREADWRITE_H
34 #define GENLIB_NET_HTTP_HTTPREADWRITE_H
46 #define HTTP_DEFAULT_TIMEOUT 30
52 int http_CancelHttpGet(IN
void *Handle);
118 IN http_method_t request_method,
119 IN OUT
int* timeout_secs,
120 OUT
int* http_error_code );
177 int http_RequestAndResponse(
179 IN
const char* request,
180 IN
size_t request_length,
181 IN http_method_t req_method,
222 OUT
size_t *doc_length,
223 OUT
char* content_type );
245 int http_WriteHttpPost(IN
void *Handle,
269 int http_CloseHttpPost(IN
void *Handle,
270 IN OUT
int *httpStatus,
297 int http_OpenHttpPost(IN
const char *url_str,
298 IN OUT
void **Handle,
299 IN
const char *contentType,
300 IN
int contentLength,
324 int http_ReadHttpGet(
346 int http_HttpGetProgress(
365 int http_CloseHttpGet(IN
void *Handle);
380 int http_OpenHttpGet(
411 const char *proxy_str,
444 int http_SendStatusResponse(
446 IN
int http_status_code,
447 IN
int request_major_version,
448 IN
int request_minor_version );
492 IN
int http_major_version,
494 IN
int http_minor_version,
515 void http_CalcResponseVersion(
516 IN
int request_major_vers,
517 IN
int request_minor_vers,
518 OUT
int* response_major_vers,
519 OUT
int* response_minor_vers );
547 int http_OpenHttpGetEx(IN
const char *url_str,
548 IN OUT
void **Handle,
549 IN OUT
char **contentType,
550 OUT
int *contentLength,
570 void get_sdk_info( OUT
char *info, IN
size_t infoSize );
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)
Get the data on the socket and take actions based on the read data to modify the parser objects buffe...
Definition: httpreadwrite.c:272
int http_OpenHttpGetProxy(const char *url_str, const char *proxy_str, void **Handle, char **contentType, int *contentLength, int *httpStatus, int timeout)
Makes the HTTP GET message, connects to the peer, sends the HTTP GET request, gets the response and p...
Definition: httpreadwrite.c:1455
Represents a URI used in parse_uri and elsewhere.
Definition: uri.h:136
int http_MakeMessage(membuffer *buf, int http_major_version, int http_minor_version, const char *fmt,...)
Generate an HTTP message based on the format that is specified in the input parameters.
Definition: httpreadwrite.c:1605
int SOCKET
Definition: UpnpInet.h:53
int http_SendMessage(SOCKINFO *info, int *TimeOut, const char *fmt,...)
Sends a message to the destination based on the format parameter.
Definition: httpreadwrite.c:362
Definition: httpparser.h:209
Definition: membuffer.h:56