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 );