summaryrefslogtreecommitdiff
path: root/methods/https.cc
Commit message (Collapse)AuthorAgeFilesLines
* Make Proxy-Auto-Detect check for each hostMichael Vogt2014-09-021-0/+4
| | | | | | | | | When doing Acquire::http{,s}::Proxy-Auto-Detect, run the auto-detect command for each host instead of only once. This should make using "proxy" from libproxy-tools feasible which can then be used for PAC style or other proxy configurations. Closes: #759264
* enforce LFS for partial files in https range requestsDavid Kalnischkies2014-04-261-5/+5
|
* cleanup headers and especially #includes everywhereDavid Kalnischkies2014-03-131-4/+5
| | | | | | | | Beside being a bit cleaner it hopefully also resolves oddball problems I have with high levels of parallel jobs. Git-Dch: Ignore Reported-By: iwyu (include-what-you-use)
* warning: unused parameter ‘foo’ [-Wunused-parameter]David Kalnischkies2014-03-131-4/+4
| | | | | Reported-By: gcc -Wunused-parameter Git-Dch: Ignore
* warning: extra ‘;’ [-Wpedantic]David Kalnischkies2014-03-131-1/+1
| | | | | Git-Dch: Ignore Reported-By: gcc -Wpedantic
* Fix typos in documentation (codespell)Michael Vogt2014-02-221-2/+2
|
* add a testcase to check for forbidden https→http downgradesDavid Kalnischkies2014-02-141-1/+2
| | | | Git-Dch: Ignore
* disable https->http redirects in libcurlMichael Vogt2014-02-141-0/+3
| | | | This change prevents changing the protocol from https to http.
* report https download start only if we really get itDavid Kalnischkies2014-02-141-1/+2
| | | | | | Reporting it via progress means that e.g. a redirect will trigger it, too, so you get a Get & Hit while http only reports a Hit as it should be.
* use utimes instead of utimensat/futimensDavid Kalnischkies2014-02-111-3/+3
| | | | | | | | | | | cppcheck complains about the obsolete utime as it was removed in POSIX1.2008 and recommends usage of utimensat/futimens instead as those are in POSIX and so commit 9ce3cfc9 switched to them. It is just that they aren't as portable as the standard suggests: At least our kFreeBSD and Hurd ports stumble over it at runtime. So to make both, the ports and cppcheck happy, we use utimes instead. Closes: 738567
* correct some style/performance/warnings from cppcheckDavid Kalnischkies2014-01-161-5/+5
| | | | | | | | The most "visible" change is from utime to utimensat/futimens as the first one isn't part of POSIX anymore. Reported-By: cppcheck Git-Dch: Ignore
* 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
| |