[opensuse-buildservice] osc += http_headers
Hi, 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: [https://api.novell.com/] http_headers = Host: foo.bar.baz, X-username: I_may Note the RFC 822 (email-header) like continuation and the comma-separation. hth S. -- 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@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (1)
-
Susanne Oberhauser