When you call a web service like this:
username = 'test12'
password = 'test34'
client = httplib2.Http(".cache")
client.add_credentials(username,password)
URL = "http://localhost:8080/wyWebServiceTest"
response, content = client.request(URL)
How do you get the username/password into variables on the server side (i.e. in the web-service that I'm writing). I checked the self.request.headers and self.request.environ and couldn't find them.
(I'm not using Google Login, need to bounce this userid/pass against my own database to verify security.)
I was trying to ideas from this page: http://pythonpaste.org/webob/reference.html#headers
Thanks,
Neal Walters
Slight enhancement to Peter's code below:
auth = None
if 'Authorization' in self.request.headers:
auth = self.request.headers['Authorization']
if not auth: