[Yum-devel] enable yum to pass http data to repository

Bryan Mills bryan at mills1.net
Fri Nov 11 19:13:32 UTC 2005


David Lutterkort wrote:

>On Thu, 2005-11-10 at 10:03 -0500, Bryan Mills wrote:
>  
>
>>Sure.  I'm willing to make these changes:
>>1) http get parameters on a per-repo basis
>>2) ability to indicate the type of request GET or POST
>>3) add user-agent on both a global and per-repo basis
>>    
>>
>
>Do we really need the ability to do POST requests ? I am just curious
>how that would be used.
>  
>
Somewhat selfishly motivated.  But the reason is some of the websites I 
want to authenticate with only accept the login/password via a post 
request. 

So my current rough implementation allows you specify this in the 
repository conf or the global yum conf using http_method=[get,post].  
The default would be get.

Example:
[testrepo]
name=Test Repository
baseurl=http://www.example.com/samplerepo/?login=foo&passwd=foo
http_method=post
enabled=1
gpgcheck=1

-bryan



More information about the Yum-devel mailing list