13 lines
301 B
C
13 lines
301 B
C
#ifndef HTTP_CLIENT__h
|
|
#define HTTP_CLIENT__h
|
|
|
|
|
|
void extract_http_body(const char *response, char *body);
|
|
int http_get(const char *host, const char *path, int port, char *response);
|
|
int http_post(const char *host, const char *path, int port, const char *data, int data_len,char *response);
|
|
|
|
|
|
|
|
#endif
|
|
|