aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes how to use HTTPUrlConncection with user and password 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 "how to use HTTPUrlConncection with user and password" Watch "how to use HTTPUrlConncection with user and password" New topic
Author

how to use HTTPUrlConncection with user and password

Peter Reitberger
Greenhorn

Joined: Oct 13, 2003
Posts: 5
Hi,
how can I issue a HTTP request with HTTPUrlConnection when the request has to be authorized by user and password? (I get a HTTP_UNAUTHORIZED response)
Are there any properties to set? Is there some code snippet in any tutorial?
Thanks in advance!
James Swan
Ranch Hand

Joined: Jun 26, 2001
Posts: 403
Give this a whirl...

[ October 13, 2003: Message edited by: James Swan ]
Peter Reitberger
Greenhorn

Joined: Oct 13, 2003
Posts: 5
Thanks James! This whirled great!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to use HTTPUrlConncection with user and password