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
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: 9313
    
  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