wood burning stoves 2.0*
The moose likes Servlets and the fly likes Get username & password from protected RSS feed URL request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Get username & password from protected RSS feed URL request" Watch "Get username & password from protected RSS feed URL request" New topic
Author

Get username & password from protected RSS feed URL request

Shehzaad khan
Greenhorn

Joined: May 07, 2012
Posts: 5

Hello,

I want to get username and password from a protected URL format like
http://[username]:[password]@[domain]/[path]
or for example
http://s.khan@wdk.com:wdk123@mydomain.com/rss/forumPosts.page?f=50

]by using these credentials i want to authenticate my protected RSS page.
But the problem is when i request from this url, i m getting only http://mydomain.com/rss/forumPosts.page
by request.getRequestURL();

is there any way to get entire URL in requestURL which i m requesting from browser?
or please suggest me some other way for the same.
Please note that i do not want to open extra browser pop-up for asking username and password. i want it from URL itself.

Thanks in Advanced
Shahid
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Get username & password from protected RSS feed URL request