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. YA IT'S VERY USEFUL
View Tutorial          By: JOTHIBASU at 2010-12-20 05:29:38

2. To make this work with out error I had to add:
View Tutorial          By: Jester at 2009-03-26 15:25:59

3. i have clear that notify and wait
but where

View Tutorial          By: pp at 2009-06-29 06:12:13

4. hi..!!
In the above code samples there is a

View Tutorial          By: chiru at 2009-07-03 03:29:18

5. thanks for he info, was looking everywhere for som
View Tutorial          By: John at 2011-05-16 11:28:54

6. Really just brilliant...thanks
View Tutorial          By: Ash Singh at 2011-02-21 04:47:20

7. Hey,
The above tutorial is for SQL server,<

View Tutorial          By: Anil at 2012-02-07 15:58:06

8. Plz can u give me some more examples of recursion.
View Tutorial          By: Asadullah at 2010-01-23 06:38:58

9. Try this code:


Public Class

View Tutorial          By: Eldan at 2012-06-17 08:25:09

10. How to fetch a value from a database in dropdown b
View Tutorial          By: lara at 2014-11-19 09:02:43