wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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!
 
 
subject: how to use HTTPUrlConncection with user and password
 
Similar Threads
Preventing Copy-Pasting in a JPasswordField
How to prevent user from login in more than one session at the same time?
Using cookies in JAAS to extend a Single Sign On
User login in a portal
WAS 5.0 Connection Pool set up