33 #ifndef GENLIB_NET_HTTP_HTTPREADWRITE_H 34 #define GENLIB_NET_HTTP_HTTPREADWRITE_H 46 #define HTTP_DEFAULT_TIMEOUT 30 53 struct tm *http_gmtime_r(
const time_t *clock,
struct tm *result);
55 #define http_gmtime_r gmtime_r 58 int http_CancelHttpGet(IN
void *Handle);
124 IN http_method_t request_method,
125 IN OUT
int* timeout_secs,
126 OUT
int* http_error_code );
183 int http_RequestAndResponse(
185 IN
const char* request,
186 IN
size_t request_length,
187 IN http_method_t req_method,
228 OUT
size_t *doc_length,
229 OUT
char* content_type );
251 int http_WriteHttpPost(IN
void *Handle,
275 int http_CloseHttpPost(IN
void *Handle,
276 IN OUT
int *httpStatus,
303 int http_OpenHttpPost(IN
const char *url_str,
304 IN OUT
void **Handle,
305 IN
const char *contentType,
306 IN
int contentLength,
330 int http_ReadHttpGet(
352 int http_HttpGetProgress(
371 int http_CloseHttpGet(IN
void *Handle);
386 int http_OpenHttpGet(
417 const char *proxy_str,
450 int http_SendStatusResponse(
452 IN
int http_status_code,
453 IN
int request_major_version,
454 IN
int request_minor_version );
498 IN
int http_major_version,
500 IN
int http_minor_version,
521 void http_CalcResponseVersion(
522 IN
int request_major_vers,
523 IN
int request_minor_vers,
524 OUT
int* response_major_vers,
525 OUT
int* response_minor_vers );
553 int http_OpenHttpGetEx(IN
const char *url_str,
554 IN OUT
void **Handle,
555 IN OUT
char **contentType,
556 OUT
int *contentLength,
576 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:284
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:1475
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:1625
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:375
Definition: httpparser.h:209
Definition: membuffer.h:56