https://bugzilla.novell.com/show_bug.cgi?id=213580 Summary: API doesn't accept :port in Host header Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: BuildService AssignedTo: abauer@novell.com ReportedBy: poeml@novell.com QAContact: adrian@novell.com The API doesn't work when a request is made containing a Host header with trailing port number, such as Host: api.opensuse.org:443 instead of Host: api.opensuse.org According to rfc 2616, section 14.23 the port is valid (80 being the default). However, the API replies with a 404, as the following transcript shows: ([...] are parts that I ommitted here)
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> % openssl s_client -quiet -connect api.opensuse.org:443 [...] GET /source HTTP/1.1 Host: api.opensuse.org:443 authorization: Basic [...]
HTTP/1.1 404 Not Found Date: Thu, 19 Oct 2006 08:43:06 GMT Server: lighttpd/1.4.13 Content-Type: text/html Content-Length: 345 Set-Cookie: [...] P3p: CP="NOI" Set-Cookie: [...] P3p: CP="NOI" Via: 1.1 idc4-content1 (iChain 2.3.300) <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>404 - Not Found</title> </head> <body> <h1>404 - Not Found</h1> </body> </html> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< This prevents me from using a http library with keep-alive feature, at the moment, which happens to append the port number... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.