[MacPorts] #27881: user agent patch src/port1.0/portfetch.tcl

MacPorts noreply at macports.org
Wed Jan 5 20:17:53 PST 2011


#27881: user agent patch src/port1.0/portfetch.tcl
------------------------------+---------------------------------------------
 Reporter:  brad@…            |       Owner:  macports-tickets@…                   
     Type:  enhancement       |      Status:  new                                  
 Priority:  Normal            |   Milestone:                                       
Component:  base              |     Version:  1.9.2                                
 Keywords:                    |        Port:                                       
------------------------------+---------------------------------------------
Changes (by ryandesign@…):

 * cc: ryandesign@… (added)


Old description:

> Found --user-agent arg in curl.c but no way to use it within a Portfile.
>
> This patch is for src/port1.0/portfetch.tcl to allow setting new
> fetch.user_agent var in Portfiles.
>
> With this patch I was able to get around the fetch issues with the new
> port skrooge.
> #27865
>
> The skrooge server didn't like our user agent header.[[BR]]
> With this patch I add the following to Portfile and fetch succeeds:[[BR]]
> fetch.user_agent "Mozilla/4.0"

New description:

 Found --user-agent arg in curl.c but no way to use it within a Portfile.

 This patch is for src/port1.0/portfetch.tcl to allow setting new
 fetch.user_agent var in Portfiles.

 With this patch I was able to get around the fetch issues with the new
 port skrooge.
 #27865

 The skrooge server didn't like our user agent header.[[BR]]
 With this patch I add the following to Portfile and fetch succeeds:
 {{{
 fetch.user_agent "Mozilla/4.0"
 }}}

--

Comment:

 I'm not convinced we want to allow portfiles to specify the curl
 useragent. Servers that disallow our useragent to download files are
 pretty broken and should be fixed.

-- 
Ticket URL: <https://trac.macports.org/ticket/27881#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list