2 * http_client - HTTP client
3 * Copyright (c) 2009, Jouni Malinen <j@w1.fi>
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
14 enum http_client_event {
18 HTTP_CLIENT_INVALID_REPLY,
21 char * http_client_url_parse(const char *url, struct sockaddr_in *dst,
23 struct http_client * http_client_addr(struct sockaddr_in *dst,
24 struct wpabuf *req, size_t max_response,
26 struct http_client *c,
27 enum http_client_event event),
29 struct http_client * http_client_url(const char *url,
30 struct wpabuf *req, size_t max_response,
32 struct http_client *c,
33 enum http_client_event event),
35 void http_client_free(struct http_client *c);
36 struct wpabuf * http_client_get_body(struct http_client *c);
37 char * http_client_get_hdr_line(struct http_client *c, const char *tag);
38 char * http_link_update(char *url, const char *base);
40 #endif /* HTTP_CLIENT_H */