views:

145

answers:

1

I am using Prowser to screen scrape internal corporate websites. Some of the sites use basic authentication where the username is:

[email protected]

According to the documentation, in order to user digest or basic auth, I need to open the URL like this:

https://username:[email protected]/

But when I actually construct the URL, it looks like this:

https://[email protected]:[email protected]/

Which results in a URI parse error. I haven't been able to find any other way to do this using Prowser. Is there a way to set these values manually in, eg. the Request object? Or another way to encode the values?

+2  A: 

You are supposed to URI encode the username and password values, so "@" encodes to "%40".

Guss
This appears to work! Thank you!
Christopher