lists.arthurdejong.org
RSS feed

Re: question/help

[Date Prev][Date Next] [Thread Prev][Thread Next]

Re: question/help



On Tue, 2012-04-17 at 13:44 +0100, Chris Field wrote:
> Are you able to give an example of how I enter a username/password
> into the config.py file?
> 
> 
> # This is a hash that maps netlocs (e.g. some.server.com:8000) to
> # username/password combinations that are passed as basic authentication
> # to that netloc
> USERPASS = {}
> 
> To make things slightly more complicated, our usernames contain the @
> symbol, ie http://user@domain.com:password@domain.com

To hard-code USERPASS you would have to set it to something like
  {'domain.com': 'user@domain.com:password'}
for the authentication to succeed. Perhaps URL-encoding the @ would
work, e.g.
  --userpass=http://user%40domain.com:password@domain.com
but I haven't tested this.

Note that it currently only supports basic authentication and not
cookie-based sessions.

-- 
-- arthur - arthur@arthurdejong.org - http://arthurdejong.org --
-- 
To unsubscribe send an email to
webcheck-users-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/webcheck-users/