Comment on Tutorial - Connect to a password protected URL from Java program By Mike Cooper



Comment Added by : Andrew

Comment Added at : 2008-09-30 14:51:14

Comment on Tutorial : Connect to a password protected URL from Java program By Mike Cooper
Thanks for the help, however I am having some difficulty implementing it.
I keep getting the following:
java.io.IOException: Server returned HTTP response code: 403 for URL: ...

I have tried this on two different urls and I always get the same.

I tried setting it like so:
sysProperties.put("proxySet", "false");

but still I get the error - can you offer any advice?

Also Java tells me that
URLEncoder.encode and
input.readLine

are deprecated - is there an easy alternative?

Thank you very much in advance.


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Hi Steve.
I have two applications; 1 listen

View Tutorial          By: Victor at 2010-08-18 01:22:49

2. thanks for this tutorial! it's very useful
View Tutorial          By: Miguel at 2011-06-26 21:15:00

3. can i using stack in microsoft access 2007
View Tutorial          By: pxin at 2015-03-24 05:45:56

4. The Given Programms are not suitable for "How
View Tutorial          By: Rams at 2009-01-27 01:36:16

5. Your example is clear crisp and very helpful..
View Tutorial          By: sridhar at 2009-08-06 08:41:14

6. where is the main class .
View Tutorial          By: rishi at 2015-10-02 10:17:17

7. I have mobile connecting to pc 3 options come com
View Tutorial          By: Sumit Sharma at 2012-04-13 16:32:15

8. Hello,
i was run your given program in ecli

View Tutorial          By: vishnu chauhan at 2013-01-24 11:42:16

9. Thank you lot [email protected]
This example help me.

View Tutorial          By: Tushar at 2012-02-12 02:48:10

10. Best Explanation & gud example by finnaz......
View Tutorial          By: Umair Shuja at 2012-11-28 10:53:35