aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes 401 Error Code while connecting to a URL using URL class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "401 Error Code while connecting to a URL using URL class" Watch "401 Error Code while connecting to a URL using URL class" New topic
Author

401 Error Code while connecting to a URL using URL class

chandra kambham
Ranch Hand

Joined: Jun 09, 2008
Posts: 74
Hi Ranchers,

I'm getting 401 status while connecting to an URL using the URL class...
The code is as below:



and the exception stacktrace is as below....



Could some one please help me out in resolving this error...

Many Tahnks,
K.Chandra...
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
401 simply means you have no authorization ...


JDBCSupport - An easy to use, light-weight JDBC framework -
chandra kambham
Ranch Hand

Joined: Jun 09, 2008
Posts: 74
How to implement authorization in this scenario.?
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

Maybe this tutorial would help (although I didn't go through it thoroughly but it seems helpful)...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 401 Error Code while connecting to a URL using URL class
 
Similar Threads
problem in relative path in jsp page
Trying to run portals in action JSF 2.0 example in liferay on glassfish
Problem Upload files on google docs through Liferay portal 6.0.6
NullPointerException on Liferay
I am getting java.lang.LinkageError: loader constraint violation: