Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

trying to automate login 1

Status
Not open for further replies.

ZPlay

Technical User
Jan 10, 2002
24
US
I am trying to automate this process.

{
access an external web site page
(sending data to the web page in my "https:\" string)

log in to the popup window with id and pw
(page won't display until i log in)

retrieve the information displayed on the web page
(page only displays one line of information)
}

Is this possible with PHP?
If so, where do I start?
If not, are there other alternatives?

Thanks in advance. Dan

 
Insufficient data for a meaningful answer...

It can be done, but it's not as straightforward as simulating the actions you would take doing it through a web browser.

The popup page that accepts your user credentials is sending your data to some CGI for authentication and receiving some data back (a cookie with a login token or something).

You're going to have to figure out what that popup accepts, to what CGI it sends it, and how it sends its data. Then you're going to have to simulate that and accept and parse whatever is returned.

Then you're going to have to use that parsed data in all later interactions with that server. Including dealing with cookie expiration, etc. ______________________________________________________________________
TANSTAAFL!
 
Thanks for the feedback. Decided to use Java to get it accomplished.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top