summaryrefslogtreecommitdiff
path: root/net/libfetch/files/http.c
AgeCommit message (Collapse)AuthorFilesLines
2016-10-21libfetch-2.38: Support proxies for https URLs. From FreeBSD.jperkin1-12/+39
2016-10-20Only set the cached flag when the connection is actually cached. Newjoerg1-2/+2
connections should not have it set. This changes the behavior of timeouts on the first read.
2016-02-08Do not use TCP_NOPUSH on Darwin, it adds a 5 second delay after the initialjperkin1-5/+5
handshake. Bump PKGREVISION.
2014-06-11Revert bad _GNU_SOURCE change.joerg1-3/+1
2014-06-07Define _GNU_SOURCE by default for glibc-based systems (vasprintf(3)).cheusov1-1/+3
This fixes bootstrap failure on AltLinux.
2014-01-08Pass URL to fetch_ssl to fix build and add a cast for some OpenSSLjoerg1-2/+2
constloss.
2014-01-07Apply some explicit int casts for size_t format string arguments.joerg1-1/+2
2013-07-26Fix build under GNU/kFreeBSD.ryoon1-2/+6
2012-04-07Fix the last commit to not break bootstrap.joerg1-2/+2
2012-04-07Fix build with clang.wiz1-1/+2
2011-01-23Handle the case where tm_year is a long variable, from Benny Siegertagc1-3/+3
and Thorsten Glaser. Part of the MirBSD support changes.
2010-01-24Fix a variable reference in TCP_NOPUSH case.joerg1-2/+2
2010-01-23libfetch-2.30:joerg1-10/+69
HTTP keep-alive support
2010-01-23libfetch-2.29:joerg1-14/+14
Push \r\n up to the users of fetch_putln and remove it. Use send instead of write(v) to avoid SIGPIPE.
2010-01-22libfetch-2.28:joerg1-2/+2
Revamp FTP connection cache. Move it to the common layer to be later shared with HTTP (for persistent connection). The application controls how much caching is desired. Drop the reference counting on connections. Add a callback when the cached connection is dropped due to LRU. Over all, this allows more than one session cached per host and sessions cached to different servers.
2009-10-15libfetch-2.26:joerg1-11/+75
- Add support to aggressively cache directory listenings, useful for HTTP - Avoid leaking memory in error cases. From Xavier from Arch Linux.
2009-03-05Like Linux, MiNT wants _GNU_SOURCE (for strptime)abs1-3/+3
2009-03-05Always define _REENTRANT to get gmtime_r prototype on Interix.joerg1-1/+4
2009-02-22Be nice to ancient NetBSD releases. From Hauke Fath.joerg1-5/+9
2009-02-05libfetch-2.21:joerg1-4/+33
Add support for conditional GET using the 'i' flag. Inspired by the HTTP support for the same feature in FreeBSD by Murray Stokely, but mostly rewritten and extended to work for all protocols.
2008-10-06libfetch-2.16:joerg1-4/+12
- only include openssl if the openssl option is present - include arpa/inet.h to get ntohl and friends on older platforms like Interix - use new netdb.h compat code from libnbcompat - include inttypes.h only when present - don't name local variables err, Interix has a symbol like that in default namespace - allow fetch_read to do short read and do more intelligent buffering for header processing; effectively don't do a system call for each byte read
2008-05-06glibc loves to not define common string functions and fail miserablyjoerg1-6/+6
as some headers are already included. Define _GNU_SOURCE early...
2008-04-24libfetch-2.4.10:joerg1-2/+2
Start URL quoting cleanup. All URLs are now quoted correctly on parsing and when appending URLs. URLs without schema and starting with slash are considered to be file:// URLs.
2008-04-21Actually, just check for linux and ignore hurd...joerg1-2/+2
2008-04-21Fix another surprise from the glibc folks.joerg1-1/+6
2008-04-19libfetch-2.6:joerg1-23/+10
Change fetchList API to always return lists of full URLs.
2008-04-18libfetch-2.5:joerg1-5/+194
Add basic index parsing support for HTTP based on the ftpio.c code in pkg_install. Permission to use the 3-clause BSD license from Thomas Klausner in private mail.
2008-04-16Don't use inline.joerg1-2/+2
2008-04-16Use nbcompat.joerg1-1/+10
2008-04-05Add somewhat ugly, but working directory listening code for FTP.joerg1-3/+3
Note that using glob patterns that match directories can result in recursive expansion, e.g. with tnftpd.
2008-04-04libfetch-2.2:joerg1-1/+11
Add interface to glob a directory.
2008-04-02libfetch-2.1:joerg1-102/+24
- remove most of the debug junk - fix a buffer overflow in the config parser - replace stdio usage with a simple abstract IO framework. currently without explicit buffering, but that might be added later
2008-02-07The libfetch version is good enough as user-agent.joerg1-2/+2
2008-02-07Don't use warnx, fprintf(stderr, ...) is good enough. Rename logname tojoerg1-4/+3
login_name to avoid shadowing a global variable.
2008-02-07Kill more __unused.joerg1-3/+3
2008-02-07Expand __func__.joerg1-4/+4
2008-02-07Don't use __unused.joerg1-3/+3
2008-02-07EAUTH and ENEEDAUTH might not exist, so use them conditionally.joerg1-1/+5
To flag HTTP authentication errors, fallback to EPERM.
2008-02-07bcopy -> memcpyjoerg1-2/+2
2008-02-07Import libfetch-2.0, based on the FreeBSD version of today with a numberjoerg1-0/+1227
of smaller changes to not depend on sys/param.h. This library is intended to replace the tnftp dependency in pkg_install.