25 #ifndef _HTTP_INTERFACE_H 26 #define _HTTP_INTERFACE_H 50 void (*ack_header)(
U8BIT *header);
126 U32BIT request_id,
void *userdata);
139 U32BIT request_id,
void *userdata);
155 U32BIT request_id,
void *userdata);
172 U32BIT request_id,
void *userdata);
void httpSetCookieManager(HttpCookieManager_t *manager)
Set cookie manager for HTTP connections.
void httpStartRequest(HttpRequest_t request)
Start an HTTP request. Everything related to the request is passed through the callback that was regi...
HttpRequest_t httpCreateHeadRequest(U8BIT *url, HttpCallback_t callback, U32BIT request_id, void *userdata)
Create an HTTP HEAD request.
E_HttpErr httpOpen(U32BIT task_priority)
Open the HTTP interface.
U8BIT * httpGetRequestRedirect(HttpRequest_t request)
Return the URL that the request is redirected to (valid only for response codes of 3xx)...
HttpRequest_t httpCreatePostRequest(U8BIT *url, U8BIT *data, HttpCallback_t callback, U32BIT request_id, void *userdata)
Create an HTTP POST request.
void httpStopRequest(HttpRequest_t request)
Stop an HTTP request. This function does not destroy the request; this is done using httpDestroyReque...
void httpClearTlsCertStore(void)
Clear TLS certificate store.
System Wide Global Technical Data Type Definitions.
void httpResumeRequest(HttpRequest_t request)
Resume an HTTP request. A request can be paused by returning FALSE from the content callback to tell ...
void httpDestroyRequest(HttpRequest_t request)
Destroy an HTTP request.
void httpSetUserAgent(U8BIT *user_agent)
Set User Agent for HTTP connections.
void httpClose(void)
Close the HTTP interface.
void httpAddTlsCertToStore(U8BIT *certData, U32BIT certLen)
Add TLS certificate to store.
HttpRequest_t httpCreateStreamRequest(U8BIT *url, U8BIT *range, HttpCallback_t header_callback, HttpCallback_t callback, U32BIT request_id, void *userdata)
Create an HTTP request for stream media.
struct HttpRequest_tag * HttpRequest_t
U32BIT httpGetTlsCertStoreCount(void)
Return number of TLS certificate in the certificate store.
HttpRequest_t httpCreateGetRequest(U8BIT *url, U8BIT cachePriority, HttpCallback_t callback, U32BIT request_id, void *userdata)
Create an HTTP GET request.
BOOLEAN(* HttpCallback_t)(void *userdata, U32BIT request_id, HttpResponse_t *response)