This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JSP and the fly likes Bypass basic authentication for included webpage Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "Bypass basic authentication for included webpage " Watch "Bypass basic authentication for included webpage " New topic
Author

Bypass basic authentication for included webpage

ashish kulkarni
Ranch Hand

Joined: Aug 15, 2002
Posts: 130
Hello
I have to include a webpage into my existing web application, this webpage required basic authentication, so when i include this webpage into my jsp page and run i get a basic authentication pop up window, is there a way i can pass user id, password in header or some thing so i dont get this authentication window, any suggestions


A$HI$H
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30580
    
154

It would depend on the webpage. Can you use cookies to remember the user is already logged in? Is it a standard form?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
ashish kulkarni
Ranch Hand

Joined: Aug 15, 2002
Posts: 130
I am accessing this website where i do not know how they keep track of login, if they user cookies or some thing else, i dont even know the application server, if it is java or ASP, this is a IP based web camera which has in built server
suchit pandya
Ranch Hand

Joined: Oct 27, 2009
Posts: 43
Can this be solved by using session?

Store userid or something while user Do login and remove it when user Log Out. by doing this you can track user login at any instance.
ashish kulkarni
Ranch Hand

Joined: Aug 15, 2002
Posts: 130
I can do that, but how can i pass it the website and make it look like a user has entered this information and login to webpage
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

ashish kulkarni wrote:I am accessing this website where i do not know how they keep track of login, if they user cookies or some thing else...

Then this is the first thing you should find out. You won't be able to log in from your application if you don't know how log-in should be done.
 
GeeCON Prague 2014
 
subject: Bypass basic authentication for included webpage