Mailinglist Archive: opensuse-features (263 mails)

< Previous Next >
[openFATE 309717] make osc to remember http authentication header
Feature changed by: Sascha Peilicke (saschpe)
Feature #309717, revision 2
Title: make osc to remember http authentication header

Buildservice: Unconfirmed
Requester: Desirable

Requested by: JF Ding (jfding)
Partner organization:

In current implementation, osc use 'urllib2' to access api server for
http transactions. The problem is, osc need to send out a pair of
request for each access:
  1st request without authentication header, and the response will be a
401 with Basic authentication challenge.
  2nd request with dynamically generated authorization header
(Authorization: Basic <base64 encoded string>\r\n)
But we can make osc to remember the header at the first authentication
challenge of each osc running. Then the http request number and network
loading can be lowered a lot.
Python's urllib2 module is flexible enough to add this feature. I have
implemented it in my personal gitorious branch:

Any advice? Thanks.

+ Discussion:
+ #1: Sascha Peilicke (saschpe) (2011-06-24 11:32:11)
+ Looks ok, please do a merge request against osc.

openSUSE Feature:

< Previous Next >
This Thread
  • No further messages