I am using Prowser to screen scrape internal corporate websites. Some of the sites use basic authentication where the username is:
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?
You are supposed to URI encode the username and password values, so "@" encodes to "%40".
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