I have a client program (written in Python using urllib2) which makes GET requests to the server by specifying its IPv6 link-local address and scope id. The server responds to this request with a HTTP 400 error and logs "Client sent malformed Host header" in /var/logs/httpd/error_log.
Presumably, this is because of bug 35122 (https://issues.apache.org/bugzilla/show_bug.cgi?id=35122) where Apache does not accept a Host header with the scope-id in the IPv6 address. So the question, what should the correct host header be? My client program can override the default header but I'm not sure it's as simple as that because I tried changing the Host field to just the link-local address, sans scope-id and Apache still thinks that the header is malformed.
In summary, neither of the following work:Host: [fe80::207:b8ff:fedc:636b%eth0] Host: [fe80::207:b8ff:fedc:636b] N.B: fe80::207:b8ff:fedc:636b is the link-local address of an interface on the server.
So the question is, for what value of the 'Host' header, will Apache serve the request to a client like wget, curl, or my own python application?
Thank you, Salman --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx