Page MenuHome GnuPG

GnuPG does not provide Host: header for proxy requests
Closed, ResolvedPublic

Description

When requesting a key through a proxy, GnuPG (common/http.c line 1651) does not provide
a Host: header with the request. This missing header causes some keyservers (e.g.
keyserver.ubuntu.com) to return a 400 Bad Request instead of the key. Issuing the same
request without a proxy does provide a Host: header (common/http.c line 1671) and the
request is satisfied.

Event Timeline

This report was for which version of GnuPG?

Ping.
Please tell us the OS version and the GnuPG version.

This is no longer an issue with gnupg master:

% socat - tcp-listen:11371
GET /pks/lookup?op=index&options=mr&search=foobr HTTP/1.0
Host: localhost:11371
Connection: close
Via: 1.0 tinyproxy (tinyproxy/1.8.3)
Pragma: no-cache
Cache-Control: no-cache

Feel free to reopen with more specific information.

justus removed a project: Info Needed.
justus added a subscriber: justus.