summaryrefslogtreecommitdiff
path: root/methods/https.cc
Commit message (Collapse)AuthorAgeFilesLines
* handle complete responses to https range requestsDavid Kalnischkies2013-10-011-23/+53
| | | | | | | | | | | | | Servers might respond with a complete file either because they don't support Ranges at all or the If-Range condition isn't statisfied, so we have to parse the headers curl gets ourself to seek or truncate the file we have so far. This also finially adds the testcase testing a bunch of partial situations for both, http and https - which is now all green. Closes: 617643, 667699 LP: 1157943
* fix partial (206 and 416) support in httpsDavid Kalnischkies2013-10-011-33/+67
| | | | | | | As lengthy discussed in lp:1157943 partial https support was utterly broken as a 206 response was handled as an (unhandled) error. This is the first part of fixing it by supporting a 206 response and starting to deal with 416.
* merged patch from Daniel Hartwig to fix URI and proxy releated issuesMichael Vogt2013-05-081-1/+19
|
* merged from the debian-wheezy branchMichael Vogt2013-05-081-1/+6
|\
| * properly handle if-modfied-since with libcurl/https Michael Vogt2013-05-081-1/+6
| | | | | | | | (closes: #705648)
* | * methods/https.cc:Michael Vogt2013-01-091-2/+2
|/ | | | - reuse connection in https, thanks to Thomas Bushnell, BSG for the patch. LP: #1087543, Closes: #695359
* add spaces around PACKAGE_VERSION to fix FTBFS with -std=c++11David Kalnischkies2012-05-171-1/+1
|
* the previously used VERSION didn't work everywhere so we are switchingDavid Kalnischkies2012-03-221-1/+1
| | | | to the more standard PACKAGE_VERSION and make it work in every file
* * methods/http{s,}.cc:David Kalnischkies2012-01-301-0/+13
| | | | | - if a file without an extension is requested send an 'Accept: text/*' header to avoid that the server chooses unsupported compressed files in a content-negotation attempt (Closes: #657560)
* * methods/https.cc:David Kalnischkies2012-01-191-5/+5
| | | | | - use curls list append instead of appending Range and If-Range by hand which generates malformed requests, thanks Mel Collins for the hint! (Closes: #646381)
* try to avoid direct usage of .Fd() if possible and do read()s and coDavid Kalnischkies2011-12-171-1/+1
| | | | on the FileFd instead
* merge with current debian apt/experimentalDavid Kalnischkies2011-10-051-1/+4
|\
| * * apt-pkg/contrib/configuration.cc:Michael Vogt2011-10-051-1/+4
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - fix double delete (LP: #848907) - ignore only the invalid regexp instead of all options * apt-pkg/acquire-item.h, apt-pkg/deb/debmetaindex.cc: - fix fetching language information by adding OptionalSubIndexTarget * methods/https.cc: - cleanup broken downloads properly * ftparchive/cachedb.cc: - fix buffersize in bytes2hex * apt-pkg/deb/deblistparser.cc: - fix crash when the dynamic mmap needs to be grown in LoadReleaseInfo (LP: #854090)
| | * * methods/https.cc:Michael Vogt2011-09-201-1/+4
| | | | | | | | | - cleanup broken downloads properly
* | | use forward declaration in headers if possible instead of includesDavid Kalnischkies2011-09-191-0/+1
|/ /
* | Support large files in the complete toolset. Indexes of thisDavid Kalnischkies2011-09-131-1/+1
| | | | | | | | size are pretty unlikely for now, but we need it for deb packages which could become bigger than 4GB now (LP: #815895)
* | reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies2011-09-131-2/+3
|/
* * methods/https.cc:David Kalnischkies2011-01-121-4/+2
| | | - fix CURLOPT_SSL_VERIFYHOST by really passing 2 to it if enabled
* * French manpage translation updateMichael Vogt2010-01-081-6/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | * spot & fix various typos in all manpages * German manpage translation update * cmdline/apt-cache.cc: - remove translatable marker from the "%4i %s\n" string * buildlib/po4a_manpage.mak: - instruct debiandoc to build files with utf-8 encoding * buildlib/tools.m4: - fix some warning from the buildtools * apt-pkg/acquire-item.cc: - add configuration PDiffs::Limit-options to not download too many or too big patches (Closes: #554349) * debian/control: - let all packages depend on ${misc:Depends} * share/*-archive.gpg: - remove the horrible outdated files. We already depend on the keyring so we don't need to ship our own version * cmdline/apt-key: - errors out if wget is not installed (Closes: #545754) - add --keyring option as we have now possibly many * methods/gpgv.cc: - pass all keyrings (TrustedParts) to gpgv instead of using only one trusted.gpg keyring (Closes: #304846) * methods/https.cc: - finally merge the rest of the patchset from Arnaud Ebalard with the CRL and Issuers options, thanks! (Closes: #485963)
* merged patches from david (many thanks)Michael Vogt2009-12-141-46/+42
|\
| * fix the backport of the https methods as they would require an ABI breakDavid Kalnischkies2009-12-111-3/+3
| | | | | | | | otherwise in the Configuration class.
| * add https options which default to the ones from http for the httpsDavid Kalnischkies2009-12-111-55/+45
| | | | | | | | | | method as this is more sane than using only the http options without a possibility to override these for https.
| * add config setting for User-Agent in http and https to the Acquire group,David Kalnischkies2009-12-111-1/+4
|/ | | | thanks Timothy J. Miller! (Closes: #355782)
* merged -r1875..1886 from lp:~donkult/apt/sidMichael Vogt2009-12-101-1/+0
|\
* \ * merge lp:~mvo/apt/netrc branch, this adds support for aMichael Vogt2009-12-101-1/+4
|\ \ | | | | | | | | | | | | | | | | | | /etc/apt/auth.conf that can be used to store username/passwords in a "netrc" style file (with the extension that it supports "/" in a machine definition). Based on the maemo git branch. * apt-pkg/deb/dpkgpm.cc: - add "purge" to list of known actions
| * \ merge lp:~mvo/apt/netrc branch, this adds support for aMichael Vogt2009-12-071-1/+4
| |\ \ | | | | | | | | | | | | | | | | /etc/apt/auth.conf that can be used to store username/passwords in a "netrc" style file (with the extension that it supports "/" in a machine definition). Based on the maemo git branch.
| | * | * apt-pkg/contrib/netrc.cc:Michael Vogt2009-12-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - check for hostname and then host+path - better debug output * methods/https.cc: - fix bug in netrc integration
| | * | add maybe_add_auth for ftp as wellMichael Vogt2009-10-161-1/+1
| | | |
| | * | port netrc support from maemonMichael Vogt2009-10-161-0/+3
| | | |
* | | | * apt-pkg/packagemanager.cc:Michael Vogt2009-12-021-1/+3
|\| | | | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - add output about pre-depends configuring when debug::pkgPackageManager is used * methods/https.cc: - fix incorrect use of CURLOPT_TIMEOUT, closes: #497983, LP: #354972 thanks to Brian Thomason for the patch * apt-pkg/depcache.cc, apt-pkg/indexcopy.cc: - typo fix (LP: #462328) * cmdline/apt-key: - Emit a warning if removed keys keyring is missing and skip associated checks (LP: #218971)
| * | methods/https.cc: cleanup for CURLOPT_LOW_SPEED_TIMEMichael Vogt2009-11-171-2/+1
| | |
| * | * methods/https.cc:Michael Vogt2009-11-171-1/+4
| |/ | | | | | | - fix incorrect use of CURLOPT_TIMEOUT, closes: #497983, LP: #354972 thanks to Brian Thomason for the patch
* / methods/https.cc: Add support for authentication using netrc (Closes: #518473),Julian Andres Klode2009-10-121-0/+1
|/ | | patch by Jussi Hakala <jussi.hakala@hut.fi>.
* merged from the jackyf-devel branchMichael Vogt2009-08-191-12/+19
|\
| * Make apt proxy options have the highest priority, unified proxy determining ↵Eugene V. Lyubimkin2008-12-151-12/+19
| | | | | | | | code.
| * fix various -Wall warningsMichael Vogt2008-10-281-1/+1
| |
| * * merge patch that enforces stricter https server certificateMichael Vogt2008-07-251-12/+47
| | | | | | | | | | | | | | checking (thanks to Arnaud Ebalard, closes: #485960) * allow per-mirror specific https settings (thanks to Arnaud Ebalard, closes: #485965) * add doc/examples/apt-https-method-example.cof (thanks to Arnaud Ebalard, closes: #485964)
* | * methods/https.cc:Michael Vogt2009-02-031-0/+5
| | | | | | - add Acquire::https::AllowRedirect support
* | methods/https.cc: do not unlink partial files (thanks to robbiew)Michael Vogt2009-02-031-1/+0
| |
* | fix various -Wall warningsMichael Vogt2008-08-051-1/+1
| |
* | * merge patch that enforces stricter https server certificateMichael Vogt2008-07-251-12/+47
|/ | | | | checking (thanks to Arnaud Ebalard, closes: #485960) * allow per-mirror specific https settings (thanks to Arnaud Ebalard, closes: #485965)
* Add timeout support for https.Otavio Salvador2008-05-021-1/+5
|
* methods/https.cc:Michael Vogt2007-10-051-13/+13
| | | | | - delete zero size I-M-S hits - fix of-by-one error in I-M-S code
* * Reset curl options and timestamp between downloaded files. Thanks toOtavio Salvador2007-08-101-0/+13
| | | Ryan Murray <rmurray@debian.org> for the patch (closes: #437150)
* * apt-pkg/acquire-item.cc:Michael Vogt2007-08-031-8/+20
|\ | | | | | | | | | | | | - remove zero size files on I-M-S hit * methods/https.cc: - only send LastModified if we actually have one - send range request with if-range - delete failed downloads
| * * methods/https.cc:Michael Vogt2007-08-021-8/+20
| | | | | | | | | | | | | | | | - only send i-m-s if last-modified is > 0 - instead of resume send a range: if-range: custom header - merge 304 detection patch from thom may (thanks!) * apt-pkg/acquire-item.cc: - remove empty files on i-m-s hits from partial/
* | Minor typos.Otavio Salvador2007-07-101-1/+1
| |
* | * Fix compilation warnings:Otavio Salvador2007-07-101-3/+2
|/ | | | | | | | | | - apt-pkg/contrib/configuration.cc: wrong argument type; - apt-pkg/deb/dpkgpm.cc: wrong signess; - apt-pkg-acquire-item.cc: wrong signess and orderned initializers; - methods/https.cc: - type conversion; - unused variable; - changed SetupProxy() method to void;
* * methods/https.cc:Michael Vogt2006-12-191-3/+26
| | | | - implemented various cert verification options
* * added https transport method as optional pacakgeMichael Vogt2006-12-191-0/+226