[MacPorts] #41849: port 2.2.1: Error: org.macports.archivefetch for port libiconv returned: Failed to fetch signature for archive: The requested URL returned error: 400 Bad Request

MacPorts noreply at macports.org
Tue Feb 11 18:37:41 PST 2014


#41849: port 2.2.1: Error: org.macports.archivefetch for port libiconv returned:
Failed to fetch signature for archive: The requested URL returned error:
400 Bad Request
-----------------------------+-------------------------
  Reporter:  itslaksh@…      |      Owner:  wsiegrist@…
      Type:  defect          |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  server/hosting  |    Version:  2.2.1
Resolution:                  |   Keywords:
      Port:                  |
-----------------------------+-------------------------

Comment (by cal@…):

 It's a legitimate bad request, because it's using HTTP/1.1 but doesn't
 send a Host header. I should have paid more attention to your filtered
 output, it also contains the same problem. The headers for the first GET
 request are:
 {{{
 GET /libiconv/libiconv-1.14_0.darwin_13.x86_64.tbz2 HTTP/1.1
 User-Agent: MacPorts 2.2.1 libcurl/7.30.0
 Host: packages.macports.org
 Accept: */*
 }}}
 but the second GET doesn't send Accept or Host:
 {{{
 GET /libiconv/libiconv-1.14_0.darwin_13.x86_64.tbz2.rmd160 HTTP/1.1
 User-Agent: MacPorts 2.2.1 libcurl/7.30.0
 }}}

 I wonder why it doesn't and whether we can do something to force curl to
 send the headers, but it's too late to investigate further now.

-- 
Ticket URL: <https://trac.macports.org/ticket/41849#comment:9>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list