I'd like to know if the Google App Engine URL Fetch Python API does not support accessing URLs that have credentials:
http://username:[email protected]/
It should be a basic feature, but I cannot get it to work and could not find any documentation about it being supported or not as well.
SOLUTION - here's how it should be done:
result = urlfetch.fetch("http://www.domain.com/",
headers={"Authorization":
"Basic %s" % base64.b64encode("username:password")})
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With