By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,035 Members | 1,984 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,035 IT Pros & Developers. It's quick & easy.

HTTP GET request with basic authorization?

P: n/a
How do I do this using httplib.HTTPConnection and
httplib.HTTPConnection.request()? The library reference only gives a
simple GET example with no header stuff. I tried this, but it didn't work:
conn.request("GET", "/somepage.html", None, {"AUTHORIZATION": "Basic
username:password"})

Thanks for the help.

P.S. I know nothing about HTTP, I'm just piecing this stuff together from
examples on the internet, please be gentle with your responses.

Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
There's example code with discussion at :
http://www.voidspace.org.uk/atlantib...book.html#auth
Regards,

Fuzzy
http://www.voidspace.org.uk/python/index.shtml

Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.