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. good quick explanation. Thanks
View Tutorial          By: kay at 2008-12-08 21:10:13

2. Hi you will run this program just as you run any o
View Tutorial          By: Steven at 2008-10-14 09:03:28

3. It's very useful..I like u
View Tutorial          By: jeeva at 2008-04-03 23:58:41

4. Hi ,learn a new thing about These Transient and Vo
View Tutorial          By: LakshmiNarayana Golla at 2010-07-28 02:49:48

5. i was after a user interactive calendar where they
View Tutorial          By: Harry at 2011-11-17 09:01:07

6. What is AWS?
View Tutorial          By: Toja at 2013-01-22 10:36:45

7. Shouldn't you call free() on the allocated memory
View Tutorial          By: Ritchie at 2012-05-09 14:14:49

8. Very nice.
Thanks

View Tutorial          By: Kaviya at 2015-02-23 13:48:15

9. what we have to write in simple comparator class
View Tutorial          By: shiva at 2015-04-18 09:19:17

10. I want to change software of micromax x455 mobile
View Tutorial          By: Sachin at 2012-12-29 09:39:58