[Yum-devel] [UG] RFE: Add OS name to user_agent default?

James Antill james.antill at redhat.com
Mon May 12 16:06:44 UTC 2008


On Mon, 2008-05-12 at 11:23 -0400, Brian Long wrote:
> Many browsers including the OS name and platform architecture in their
> user agent strings.  Mozilla includes "PPC Mac OS X" or "Linux i686",
> for example.  I was hoping you might consider adding the name of the OS
> and the platform architecture to the default urlgrabber user_agent
> defined in grabber.py.
> 
> Currently, the user_agent is "urlgrabber/2.9.9" or "urlgrabber/3.0.0".
> I was wondering if you would consider changing the default to be as
> follows:
> 
> "urlgrabber/3.0.0 (Linux)" or "urlgrabber/3.0.0 (Linux i686)"
> "urlgrabber/3.0.0 (Mac OS X)" or "urlgrabber/3.0.0 (Mac OS X PPC)"
> "urlgrabber/3.0.0 (SunOS) or "urlgrabber/3.0.0 (SunOS sparc)".
> 
> One reason to do this would allow for OS and architecture tracking in
> Apache access_log.  I can currently track OS and architecture when
> people are using Mozilla or IE, but not when they're using yum /
> urlgrabber.

 Isn't this trivial by having $basearch and/or $releasever in your URL
lines?

-- 
James Antill <james.antill at redhat.com>
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20080512/304374d3/attachment.pgp 


More information about the Yum-devel mailing list