Click here to Skip to main content
15,902,835 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a program which try to access the internet in runtime but unfortunately the browser has an authorization/authentication system , so i keep getting 401 and 403 response code errors , so do u guys know a way to bypass it ?

Specifically, I am looking for information on how to pass credentials along with my request so that I can be authorized to access the requested resources. I know the un/pw, so ideally I'm looking for someone with experience in Java that can provide some pointers.
Posted
Updated 8-Dec-10 5:29am
v2
Comments
TheyCallMeMrJames 8-Dec-10 11:29am    
Added clarification around credentials.

You can usually get past the authorization and authentication system by providing a user name and password.

Without those, that's called 'hacking' and you're not really going to find much help here. Most of us here have spent a good deal of time designing or working on systems to keep people without credentials out of our systems.

Cheers.
 
Share this answer
 
Comments
KaRaMiLo 8-Dec-10 11:11am    
i do know the user name and password but i don't know how to use them within java code !
TheyCallMeMrJames 8-Dec-10 11:27am    
Excellent...I'll update the question accordingly so that you can solicit a better response.
There's an example with some of the libraries that you may need to use here[^].

Hope this helps some, good luck.

Cheers.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900