Mailinglist Archive: opensuse-buildservice (250 mails)

< Previous Next >
[opensuse-buildservice] osc += http_headers
  • From: Susanne Oberhauser <froh@xxxxxxxxxx>
  • Date: Wed, 20 Aug 2008 16:53:08 +0200
  • Message-id: <s2isksz4u23.fsf@xxxxxxxxxx>

I needed a way to feed additional http headers to the api server (for
authentication purposes).

So I've added optional 'http_headers=...' to .oscrc in the individual
api host sections, available from svn revision 4716.

The option takes a comma separated list of 'Attribute: Value' pairs.

So if your obs setup needs, say, two additional headers for
authentication, like "Host: ..." and "X-username: ...", then your
config may look like this:

http_headers = Host:,
X-username: I_may

Note the RFC 822 (email-header) like continuation and the


Susanne Oberhauser +49-911-74053-574 SUSE -- a Novell Business
OPS Engineering Maxfeldstraße 5
Processes and Infrastructure Nürnberg
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages