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. Respected Sir,
We are

View Tutorial          By: Core Java at 2009-10-24 01:36:20

2. No it won't work...
View Tutorial          By: Arin at 2012-08-17 09:59:40

3. Hi Ramlak,
Am getting
Sat Jan 17 13

View Tutorial          By: Shiv Kumar at 2009-01-17 02:01:01

4. Hi Everyone, i tried the code. im using this code.
View Tutorial          By: sourabh at 2011-09-09 12:42:02

5. 2nd example not gud
View Tutorial          By: prakash at 2011-11-15 11:07:43

6. what is the return type for clicker method? The pr
View Tutorial          By: Gautam at 2013-10-14 15:36:27

7. to Donovan Aces #61, thank you, I am new to java &
View Tutorial          By: Joe at 2011-09-14 22:40:19

8. sir plz give ur sugissions for my golden future in
View Tutorial          By: sridevi at 2012-06-06 10:26:36

9. nice one ...
View Tutorial          By: vamsi at 2011-11-11 06:41:25

10. Comment: Just for future readers: (apart from the
View Tutorial          By: Anonymous at 2013-05-17 08:53:20