2 * http_client - HTTP client
3 * Copyright (c) 2009, Jouni Malinen <j@w1.fi>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 * Alternatively, this software may be distributed under the terms of BSD
12 * See README and COPYING for more details.
20 enum http_client_event {
24 HTTP_CLIENT_INVALID_REPLY,
27 struct http_client * http_client_addr(struct sockaddr_in *dst,
28 struct wpabuf *req, size_t max_response,
30 struct http_client *c,
31 enum http_client_event event),
33 struct http_client * http_client_url(const char *url,
34 struct wpabuf *req, size_t max_response,
36 struct http_client *c,
37 enum http_client_event event),
39 void http_client_free(struct http_client *c);
40 struct wpabuf * http_client_get_body(struct http_client *c);
41 char * http_link_update(char *url, const char *base);
43 #endif /* HTTP_CLIENT_H */