aboutsummaryrefslogtreecommitdiffstats
path: root/common/http.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-04-23w32: Almost everywhere include winsock2.h before windows.h.Werner Koch1-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.
2013-02-28Bring the fix for bug 739 on 1.4 over to 2.0 (bug 1479)David Shaw1-5/+2
* http.h, http.c (http_wait_response, main): Remove HTTP_FLAG_NO_SHUTDOWN.
2012-12-19Fixed indentation and indented cpp directivesWerner Koch1-41/+43
--
2012-12-15Part of issue 1447: Pass proper Host header when SRV is used.David Shaw1-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.
2012-12-15Fix issue 1446: honor ports given in SRV responses.David Shaw1-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.
2009-05-28Avoid caches to get the most recent copy of the key. This is bug #1061David Shaw1-7/+32
2009-05-28* http.h, http.c (send_request): Pass in srvtag and make its presenceDavid Shaw1-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).
2009-03-13* http.c (do_parse_uri): Properly handle IPv6 literal addresses as perDavid Shaw1-6/+16
RFC-2732. Adapted from patch by Phil Pennock.
2008-10-20Marked all unused args on non-W32 platforms.Werner Koch1-0/+2
2008-04-21W32 related keyserver fixes.Werner Koch1-1/+15
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2007-06-14A whole bunch of changes to allow building for Windows.Werner Koch1-3/+9
See the ChangeLogs for details.
2007-06-06First steps towards supporting W32.Werner Koch1-5/+5
This is mainly source code reorganization. Update gnulib. g10/ does currently not build.
2007-03-10From STABLE-BRANCH-1-4David Shaw1-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.
2006-11-28Preparing 2.0.1Werner Koch1-0/+1
2006-09-14Take advantage of newer gpg-error features.Werner Koch1-25/+37
2006-09-06Minor changes and typo fixes.Werner Koch1-1/+3
2006-09-04Support to read response headers. Required for redirection support in theWerner Koch1-3/+177
dirmngr package.
2006-08-16With --enable-gpg the keyservers are now build and a first test using gpg2Werner Koch1-3/+4
shows no prblems. Needs more testing of course.
2006-08-14Changed HTTP API.Werner Koch1-22/+115
2006-08-11Added http.c from 1.4. Werner Koch1-0/+1729
Added support for estream and gnutls.