aboutsummaryrefslogtreecommitdiffstats
path: root/common/http.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* w32: Almost everywhere include winsock2.h before windows.h.Werner Koch2013-04-231-0/+3
| | | | | | | | | | | -- This is required by newer mingw toolchain versions which demand that winsock2.h is included before windows.h. Now, due to the use of socket definitions in pth.h we need to include winsock2.h also in pth.h, now pth.h is often included after an include of windows.h and thus the compiler spits out a warning. To avoid that we include winsock2.h at all places the compiler complains about.
* Bring the fix for bug 739 on 1.4 over to 2.0 (bug 1479)David Shaw2013-02-281-5/+2
| | | | | * http.h, http.c (http_wait_response, main): Remove HTTP_FLAG_NO_SHUTDOWN.
* Fixed indentation and indented cpp directivesWerner Koch2012-12-191-41/+43
| | | | --
* Part of issue 1447: Pass proper Host header when SRV is used.David Shaw2012-12-151-3/+4
| | | | | | * common/http.c (send_request, connect_server): Set proper Host header (no :port, host is that of the SRV) when SRV is used in the curl-shim.
* Fix issue 1446: honor ports given in SRV responses.David Shaw2012-12-151-24/+35
| | | | | | | | | | | | * common/http.c (send_request, connect_server, http_open): Use a struct srv instead of a single srvtag so we can pass the chosen host and port back to the caller. (connect_server): Use the proper port in the HAVE_GETADDRINFO case. * keyserver/curl-shim.c (curl_easy_perform): Use struct srv and log chosen host and port. * keyserver/gpgkeys_hkp.c (main): Properly take the port given by SRV.
* Avoid caches to get the most recent copy of the key. This is bug #1061David Shaw2009-05-281-7/+32
|
* * http.h, http.c (send_request): Pass in srvtag and make its presenceDavid Shaw2009-05-281-10/+13
| | | | | | | | | | | | | sufficient to turn the feature on. (http_open): From here. (http_document): And here. * gpgkeys_hkp.c (srv_replace): New function to transform a SRV hostname to a real hostname. (main): Call it from here for the HAVE_LIBCURL case (without libcurl is handled via the curl-shim). * curl-shim.h, curl-shim.c (curl_easy_setopt, curl_easy_perform): Add a CURLOPT_SRVTAG_GPG_HACK (passed through the the http engine).
* * http.c (do_parse_uri): Properly handle IPv6 literal addresses as perDavid Shaw2009-03-131-6/+16
| | | | | RFC-2732. Adapted from patch by Phil Pennock.
* Marked all unused args on non-W32 platforms.Werner Koch2008-10-201-0/+2
|
* W32 related keyserver fixes.Werner Koch2008-04-211-1/+15
|
* Changed to GPLv3.Werner Koch2007-07-041-4/+2
| | | | | Removed intl/.
* A whole bunch of changes to allow building for Windows.Werner Koch2007-06-141-3/+9
| | | | | See the ChangeLogs for details.
* First steps towards supporting W32.Werner Koch2007-06-061-5/+5
| | | | | | | This is mainly source code reorganization. Update gnulib. g10/ does currently not build.
* From STABLE-BRANCH-1-4David Shaw2007-03-101-2/+0
| | | | | | | * http.c (do_parse_uri): Remove the hkp port 11371 detection. We implement hkp in the keyserver handler, and the support here makes it appear like a bad hkp request actually succeeded.
* Preparing 2.0.1Werner Koch2006-11-281-0/+1
|
* Take advantage of newer gpg-error features.Werner Koch2006-09-141-25/+37
|
* Minor changes and typo fixes.Werner Koch2006-09-061-1/+3
|
* Support to read response headers. Required for redirection support in theWerner Koch2006-09-041-3/+177
| | | | | dirmngr package.
* With --enable-gpg the keyservers are now build and a first test using gpg2Werner Koch2006-08-161-3/+4
| | | | | shows no prblems. Needs more testing of course.
* Changed HTTP API.Werner Koch2006-08-141-22/+115
|
* Added http.c from 1.4. Werner Koch2006-08-111-0/+1729
Added support for estream and gnutls.