I want to fetch a URL with java.net but any connection is refused. I know that when I ask for a page, my browser (IE) uses my Windows login ID to authenticate me, then pass my request through a proxy. Can someone please help me translate this process into the Java libraries and steps to fetch webpage? Thank you.
EDIT:
- I'm not sure what kind of authentication it uses here. Before any page is retrieved, it pops up a login window where I have to type in my domain\userid and password. How can I figure out the type of authentication?
- The proxy changes via an automatic configuration script.