35 typedef struct OSRTHttpHeader {
42 typedef struct OSRTHttpContent {
47 typedef int tlsInit_t(
OSCTXT* pctxt,
const char* serverName);
48 typedef int tlsClose_t(
OSCTXT* pctxt);
78 (
OSCTXT* pctxt,
const char* url, OSRTHttpContent* pContent,
79 tlsInit_t* f_tls_init, tlsClose_t* f_tls_close);
94 (
OSCTXT* pctxt,
const char* url, OSRTHttpContent* pContent);
116 const char* method,
const char* content,
const char* contentType);
128 (OSRTNETCONN* pNetConn, OSRTHttpHeader* pHeader);
141 (OSRTNETCONN* pNetConn, OSRTHttpHeader* pHeader, OSRTHttpContent* pContent);
155 (OSRTNETCONN* pNetConn, OSRTHttpHeader* pHeader, OSRTHttpContent* pContent);
157 #if defined(_TRACE) || defined(RTXHTTPDBG) 165 void rtxDiagPrintHttpHeader (
OSCTXT* pctxt,
const OSRTHttpHeader* pHeader);
EXTERNRT int rtxHttpSendRequest(OSRTNETCONN *pNetConn, const char *method, const char *content, const char *contentType)
This function sends an HTTP request to a network connection.
EXTERNRT int rtxHttpSendGetRequest(OSRTNETCONN *pNetConn, const char *url)
This function sends an HTTP GET request to a network connection.
EXTERNRT int rtxHttpGetTls(OSCTXT *pctxt, const char *url, OSRTHttpContent *pContent, tlsInit_t *f_tls_init, tlsClose_t *f_tls_close)
TLS-enabled version of rtxHttpGet.
EXTERNRT int rtxHttpSendConnectRequest(OSRTNETCONN *pNetConn)
This function executes a full synchronous HTTP CONNECT request to setup a connection through a proxy...
EXTERNRT int rtxHttpRecvRespContent(OSRTNETCONN *pNetConn, OSRTHttpHeader *pHeader, OSRTHttpContent *pContent)
This function receives any HTTP content indicated by the response header.
Run-time context structure.
EXTERNRT int rtxHttpRecvRespHdr(OSRTNETCONN *pNetConn, OSRTHttpHeader *pHeader)
This function receives the initial header returned from an HTTP request.
EXTERNRT int rtxHttpGet(OSCTXT *pctxt, const char *url, OSRTHttpContent *pContent)
This function executes a full synchronous HTTP GET request.
EXTERNRT int rtxHttpRecvContent(OSRTNETCONN *pNetConn, OSRTHttpHeader *pHeader, OSRTHttpContent *pContent)
This function receives HTTP content.