aboutsummaryrefslogtreecommitdiffstats
path: root/util/http.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Part of issue 1447: Pass proper Host header when SRV is used.David Shaw2012-12-191-5/+9
| | | | | | | | * 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. Backported from cbe98b2cb1e40ba253300e604996681ae191e363
* Remove trailing white space from some filesWerner Koch2012-12-191-5/+5
| | | | --
* Adjust to GNU coding standardsWerner Koch2012-12-191-3/+8
| | | | | | | -- A variable definition with initialization shall have only one variable per type.
* Fix last commitWerner Koch2012-12-191-1/+1
| | | | * util/http.c (connect_server): Bump SRVINDEX and not SRV.
* Fix issue 1446: honor ports given in SRV responses.David Shaw2012-12-191-23/+31
| | | | | | | | | | | | | | * 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. Backported from ba9e974f1fd85b3dbbfb5e26d7a14f71d07c7cf2
* Avoid caches to get the most recent copy of the key. This is bugDavid Shaw2009-05-261-7/+22
| | | | | #1061
* * srv.h: Move to include/srv.h.David Shaw2009-04-061-4/+6
| | | | | * http.c (send_request): Pass in srvtag... (http_open): ...from here.
* * curl-shim.h, curl-shim.c (curl_easy_setopt, curl_easy_perform): AddDavid Shaw2009-04-031-6/+7
| | | | | | | | | | a CURLOPT_SRVTAG_GPG_HACK (passed through the the http engine). * http.h: Allow passing srvtag to http_open and http_open_document. * http.c (http_open, http_open_document): Allow passing srvtag to http_open and http_open_document.
* * http.c (connect_server): free (rather than xfree) the result ofDavid Shaw2009-04-031-2/+4
| | | | | getsrv().
* * http.c (do_parse_uri): Properly handle IPv6 literal addresses as perDavid Shaw2009-03-131-6/+17
| | | | | RFC-2732. Adapted from patch by Phil Pennock.
* * Makefile.am, http.c (start_server): Minor tweaks to get http-testDavid Shaw2009-03-131-3/+3
| | | | | compiling again.
* Switched to GPLv3.Werner Koch2007-10-231-4/+2
| | | | | Updated gettext.
* * http.c (do_parse_uri): Remove the hkp port 11371 detection. WeDavid Shaw2007-02-111-2/+0
| | | | | | implement hkp in the keyserver handler, and the support here makes it appear like a bad hkp request actually succeeded.
* Fix bug#739 (proxy/shutdown)Werner Koch2006-12-141-2/+6
|
* * http.c (send_request): A zero-length proxy is the same as no proxy atDavid Shaw2006-07-201-1/+1
| | | | | all. Suggested by J. Scott Berg.
* * http.c (send_request): A zero length proxy is the same as no proxy.David Shaw2006-02-191-1/+1
|
* Converted all m_free to xfree etc.Werner Koch2005-07-271-21/+21
|
* * http.c (make_radix64_string): Add '=' padding as per standard.David Shaw2005-06-231-32/+46
| | | | | | | (send_request, http_open, http_open_document): Clean up auth code. Can now support different auth for a proxy and the file being requested via that proxy. Unescape auth strings.
* * http.c (send_request, http_open, http_open_document): Pass in authDavid Shaw2005-06-221-7/+14
| | | | | and proxyauth that can override the in-url auth.
* * http.c (send_request): Need == after the radix64-encoded basic authDavid Shaw2005-06-221-4/+4
| | | | | string.
* Updated FSF street address and preparations for a release candidate.Werner Koch2005-05-311-1/+2
|
* Last changes for W32RC-1-4-1rc1Werner Koch2005-02-031-1/+1
|
* * http.c (connect_server): Fix fd leak when connecting to a round-robinDavid Shaw2005-02-011-1/+9
| | | | | server set that has some down servers. Noted by Phil Pennock.
* * http.c (connect_server): Use INADDR_NONE instead of SOCKET_ERROR.David Shaw2005-01-131-1/+1
| | | | | Noted by Timo.
* Better implementation for the SRV check. We don't need to actually checkDavid Shaw2004-12-291-0/+1
| | | | | | all the header files individually since the SRV test compile uses them together.
* * http.c (send_request): Include the port if non-80 in the Host: header.David Shaw2004-12-031-6/+14
| | | | | Noted by Jason Harris.
* * http.c (connect_server, send_request): Use the URI scheme as the SRV tagDavid Shaw2004-10-181-16/+22
| | | | | rather than hard-coding _hkp.
* * http.c (connect_server): [_WIN32] actually fill in the sin_addr so weDavid Shaw2004-10-161-1/+13
| | | | | | aren't always talking to localhost. Add some general sanity checking of parameters learned from gethostbyname().
* * http.c (make_radix64_string, do_parse_uri, send_request): Add basic authDavid Shaw2004-09-101-16/+78
| | | | | for proxies and direct requests. Suggested by Florent Thoumie.
* * http.c (main): Fix test code for http-test.David Shaw2004-09-101-2/+2
|
* * http.c (insert_escapes): Fix encoding problem for non-URI-safeDavid Shaw2004-08-191-2/+2
| | | | | characters. Noted by Vladimir Novak.
* * http.c (send_request, http_open_document, http_open): Pass the httpDavid Shaw2003-12-281-29/+16
| | | | | proxy from outside rather than pulling it from the evironment.
* * http.c (send_request): Add a Host: header for virtual hosts.David Shaw2003-12-061-5/+3
|
* * http.c (connect_server): Differentiate between generic "can't connect"David Shaw2003-11-011-4/+12
| | | | | | errors and the more specific "host not found". Suggested by Samuel Tardieu.
* 2003-09-21 Timo Schulz <[email protected]>Timo Schulz2003-09-211-2/+1
| | | | | | * http.c [WIN32]: Define MB_CUR_MAX. (connect_server): use unsigned long since W32 does not have in_addr_t.
* * dotlock.c, http.c, iobuf.c, simple-gettext.c, srv.c, srv.h, strgutil.c,David Shaw2003-08-281-7/+10
| | | | | | | | | ttyio.c, w32reg.c: s/__MINGW32__/_WIN32/ to help building on native Windows compilers. Requested by Brian Gladman. From Werner on stable branch. * http.c (connect_server): Oops - forgot to freeaddrinfo().
* * http.c (connect_server): Try and use getaddrinfo if it is available.David Shaw2003-08-251-51/+75
| | | | | | Try for IPv6 via getaddrinfo() or a IPv6-ized gethostbyname(). Suggested by Jun-ichiro itojun Hagino.
* * argparse.c, dotlock.c, fileutil.c, iobuf.c, miscutil.c,David Shaw2003-05-241-19/+19
| | | | | | | | simple-gettext.c, errors.c, http.c, memory.c, secmem.c, ttyio.c: Edit all preprocessor instructions to remove whitespace before the '#'. This is not required by C89, but there are some compilers out there that don't like it.
* * http.c (connect_server): Use DNS SRV to get a server list. Fail over toDavid Shaw2003-03-111-50/+85
| | | | | | | A records if necessary. * Makefile.am, srv.h, srv.c: New DNS SRV handling code.
* * http.c (connect_server): Try all A records for names with multipleDavid Shaw2002-10-171-66/+75
| | | | | addresses until one answers for both MINGW32 and not MINGW32.
* * http.c (connect_server): Properly handle a single A record that failsDavid Shaw2002-10-111-3/+4
| | | | | connect().
* * http.c (connect_server): Try all A records for names with multipleDavid Shaw2002-09-241-4/+17
| | | | | addresses until one answers (not MINGW32).
* Update head to match stable 1.0David Shaw2002-06-291-65/+166
|
* See ChangeLog: Fri Jul 14 19:38:23 CEST 2000 Werner KochWerner Koch2000-07-141-9/+33
|
* See ChangeLog: Thu Jan 27 18:00:44 CET 2000 Werner KochWerner Koch2000-01-271-18/+20
|
* See ChangeLog: Mon Jan 24 13:04:28 CET 2000 Werner KochWerner Koch2000-01-241-10/+10
|
* See ChangeLog: Sun May 23 14:20:22 CEST 1999 Werner KochWerner Koch1999-05-231-0/+4
|
* See ChangeLog: Sun Apr 18 10:11:28 CEST 1999 Werner KochWerner Koch1999-04-181-5/+5
|
* See ChangeLog: Sat Mar 20 11:53:40 CET 1999 Werner KochWerner Koch1999-03-201-1/+2
|
* See ChangeLog: Tue Feb 16 14:10:02 CET 1999 Werner KochWerner Koch1999-02-161-16/+16
|