This is a discussion on simulate send data with POST and get data from a Web Page (whith a session) within the PHP Language forums, part of the PHP Programming Forums category; I'd like to get text of a webpageB that I reach by putting a login and a password in ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I'd like to get text of a webpageB that I reach by putting
a login and a password in a webpageA. I mean: I'd like to get text of a WebPageB with a php script. But before I can see WebPageB I have to autenticate myself in a WebPageA writing my login and my password in a form, the host recognise me and (by session) let me see the WebPageB. The question is: 1)how to simulate send data (login an password) in form with a PHP script? 2)how to navigate in a Web usin the same session? Thank you in advance, Mario. |
|
|||
|
_mario.lat@libero.it wrote:
> I'd like to get text of a webpageB that I reach by putting > a login and a password in a webpageA. > > I mean: > I'd like to get text of a WebPageB with a php script. > But before I can see WebPageB I have to autenticate myself > in a WebPageA writing my login and my password in a form, > the host recognise me and (by session) let me see the WebPageB. > > The question is: > 1)how to simulate send data (login an password) in form with a PHP script? > 2)how to navigate in a Web usin the same session? > > Thank you in advance, > Mario. http://php.net/curl -- www.iuz-lab.info |
|
|||
|
_mario.lat@libero.it wrote: > The question is: > 1)how to simulate send data (login an password) in form with a PHP script? > 2)how to navigate in a Web usin the same session? Hello Mario, Yeah, cUrl is probably the best solution, but I've also use the Snoopy PHP class, and that works nicely as well: http://sourceforge.net/projects/snoopy/ It's so much fun when you get this to work the first time. ; ) Chris S. Free Web Design Tools http://www.impliedbydesign.com/free-...e-scripts.html |