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! Sir.I am anish from Sultanpur.I want to Know t
View Tutorial          By: Anish at 2014-12-10 08:23:49

2. i want to Java coding's immediately
View Tutorial          By: vignesh at 2009-07-29 07:02:23

3. Hi Mirna,
U r talking abt speech to text co

View Tutorial          By: akshat at 2012-04-02 14:38:31

4. hello,thanx its really great
View Tutorial          By: sadhana at 2011-08-05 09:35:00

5. U should give the output also.. then only it will
View Tutorial          By: Mohamed Younus at 2011-07-07 10:13:54

6. Hi every one. I am working on my project in j2me a
View Tutorial          By: Anonymous at 2011-05-01 09:04:16

7. can anybody tell me the full code for sending sms
View Tutorial          By: shikha at 2008-10-13 11:43:40

8. Getting Invalid IPv4 format J2me Midp 2.0, Asp.net
View Tutorial          By: Anup at 2013-01-02 05:11:51

9. how to append more items in multiple choice group
View Tutorial          By: GIRIDHARAN at 2013-03-25 19:05:09

10. send c++ programs on every topic of c++
View Tutorial          By: mandeep at 2009-07-11 00:50:23