diff options
author | des <des@FreeBSD.org> | 2000-10-12 22:10:43 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2000-10-12 22:10:43 +0000 |
commit | 62f1dcda1959d87be6dc973549521d5edb6dcc7c (patch) | |
tree | 881234120acf4e7c4a44cac20cfdf106f5881d9b /lib/libfetch | |
parent | a0c41f168712694b51098a2675f48d73e32c735f (diff) | |
download | FreeBSD-src-62f1dcda1959d87be6dc973549521d5edb6dcc7c.zip FreeBSD-src-62f1dcda1959d87be6dc973549521d5edb6dcc7c.tar.gz |
ftp.c needs _http_request()
Diffstat (limited to 'lib/libfetch')
-rw-r--r-- | lib/libfetch/common.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/libfetch/common.h b/lib/libfetch/common.h index 970153a..393010b 100644 --- a/lib/libfetch/common.h +++ b/lib/libfetch/common.h @@ -60,4 +60,15 @@ int _fetch_add_entry(struct url_ent **p, int *size, int *len, #define DEBUG(x) do { } while (0) #endif +/* + * I don't really like exporting _http_request() from http.c, but ftp.c + * occasionally needs to use an HTTP proxy, and this saves me from adding + * a lot of special-case code to http.c to handle those cases. + * + * Note that _http_request() frees purl, which is way ugly but saves us a + * whole lot of trouble. + */ +FILE *_http_request(struct url *URL, char *op, struct url_stat *us, + struct url *purl, char *flags); + #endif |