32 #ifndef GENLIB_NET_HTTP_HTTPREADWRITE_H
33 #define GENLIB_NET_HTTP_HTTPREADWRITE_H
41 #define HTTP_DEFAULT_TIMEOUT 30
50 http_CancelHttpGet( IN
void *Handle );
84 int http_FixStrUrl( IN
const char* urlstr, IN
int urlstrlen, OUT
uri_type* fixed_url );
126 IN http_method_t request_method,
127 IN OUT
int* timeout_secs,
128 OUT
int* http_error_code );
157 int http_SendMessage(
159 IN OUT
int* timeout_secs,
160 IN
const char* fmt, ... );
185 int http_RequestAndResponse(
187 IN
const char* request,
188 IN
size_t request_length,
189 IN http_method_t req_method,
231 OUT
char* content_type );
253 int http_WriteHttpPost(IN
void *Handle,
255 IN
unsigned int *size,
277 int http_CloseHttpPost(IN
void *Handle,
278 IN OUT
int *httpStatus,
305 int http_OpenHttpPost(IN
const char *url_str,
306 IN OUT
void **Handle,
307 IN
const char *contentType,
308 IN
int contentLength,
332 int http_ReadHttpGet(
335 IN OUT
unsigned int *size,
354 int http_HttpGetProgress(
356 OUT
unsigned int *length,
357 OUT
unsigned int *total );
374 int http_CloseHttpGet(IN
void *Handle);
402 int http_OpenHttpGet(
403 IN
const char *url_str,
404 IN OUT
void **Handle,
405 IN OUT
char **contentType,
406 OUT
int *contentLength,
437 int http_OpenHttpGetProxy(IN
const char *url_str,
438 IN
const char *proxy_str,
439 IN OUT
void **Handle,
440 IN OUT
char **contentType,
441 OUT
int *contentLength,
466 int http_SendStatusResponse(
468 IN
int http_status_code,
469 IN
int request_major_version,
470 IN
int request_minor_version );
522 int http_MakeMessage(
524 IN
int http_major_version,
525 IN
int http_minor_version,
526 IN
const char* fmt, ... );
543 void http_CalcResponseVersion(
544 IN
int request_major_vers,
545 IN
int request_minor_vers,
546 OUT
int* response_major_vers,
547 OUT
int* response_minor_vers );
575 int http_OpenHttpGetEx(IN
const char *url_str,
576 IN OUT
void **Handle,
577 IN OUT
char **contentType,
578 OUT
int *contentLength,
597 void get_sdk_info( OUT
char *info );
604 #endif // GENLIB_NET_HTTP_HTTPREADWRITE_H