Re: Login via php code on an external page



Andrea wrote:
I have to do a php script that daily surf a webpage (I do it with
crontab) and collect some data.
The proble is that to access that webpage I have to do a login. I have
the login data, but do it via browser....ok, I'm not stupid, but do
that via php script...well I'm not able to do it.
The script is running on the server side, so it's useless to do the
login on my browser prior to run the script.
The page where I have to login has this code in it:

It's a lot easier if you use wget, it supports sessions and cookies, you first use wget to get the page to your local machine and then process the file in php.


--

//Aho
.



Relevant Pages

  • Re: Virginity Security Advisory 2007-001 : T-Com Speedport 500V Login bypass
    ... The router remembers the login state. ... Save the script below to a file named Speedport500V.sh. ...
    (Bugtraq)
  • Re: session ids and included scripts
    ... This directs to a script with no output as it purley checks the ... login data is true. ... The session id is still in the url at this point. ... If the login data is ok it then uses location to redirect to another ...
    (alt.php)
  • Re: ClearChat module
    ... idea to replace user names and passwords with terms such as "myuser" and ... This says that you are not using the correct login to your mysql database. ... It looks like you mix up the mysql user access (the login data your script ... When you post questions to newsgroups it might be a good ...
    (alt.php)
  • Re: ClearChat module
    ... This says that you are not using the correct login to your mysql database. ... It looks like you mix up the mysql user access (the login data your script ... process the chat user login posted from the login page, ...
    (alt.php)
  • Re: Multiple 60s For sale
    ... for them to write some malware that would intercept, ... the name and password the the malware author before it even got to the ... How you got the site with login window is completely irrelevant ... to how you send the login data to the server. ...
    (alt.games.warcraft)