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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program 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
Archived Comments
1. Plse Send me The Code For Sms Application to My Ma
View Tutorial By: Santoshb at 2010-09-08 07:08:55
2. I am trying to connect mobile to PC. I put your ex
View Tutorial By: Dedo at 2011-11-30 17:45:32
3. Thanks this page is very useful for me and now I k
View Tutorial By: Yee Wai Wyne at 2009-10-18 23:03:41
4. YA IT'S VERY USEFUL
View Tutorial By: JOTHIBASU at 2010-12-20 05:29:38
5. it is perfectly working...
View Tutorial By: Venkatesh at 2014-09-21 06:54:39
6. the way of explanation is really good. there is a
View Tutorial By: Arul at 2009-01-09 00:13:46
7. Thanks...it was very helpful :)
View Tutorial By: Swathi at 2012-01-25 06:49:46
8. Thanks so much!
View Tutorial By: Viet at 2013-01-15 15:02:52
9. help, i want to migrate my system (asp to jsp)
View Tutorial By: gendull at 2007-02-25 21:03:20
10. Nice Example...!
View Tutorial By: Kuldeep Singh at 2009-10-18 23:58:17