Skip to content

sipf_client_http

Fuminori OKUHARA edited this page Mar 15, 2022 · 2 revisions

HTTPクライアント

sipf/sipf_client_http.h

マクロ

#define HTTP_PORT 80
#define HTTPS_PORT 443
#define TLS_SEC_TAG 42
#define BUFF_SZ (1024)

関数定義

int SipfClientHttpSetAuthInfo(const char *user_name, const char *passwd);
char *SipfClientHttpGetAuthInfo(void);
int SipfClientHttpRunRequest(const char *hostname, struct http_request *req, uint32_t timeout, struct http_response *http_res, bool tls);
int SipfClientHttpParseURL(char *url, const int url_len, char **protocol, char **host, char **path);
Clone this wiki locally