simulate send data with POST and get data from a Web Page (whith a session)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • _mario.lat@libero.it

    #1

    simulate send data with POST and get data from a Web Page (whith a session)

    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.
  • iuz

    #2
    Re: simulate send data with POST and get data from a Web Page (whith a session)

    _mario.lat@libe ro.it wrote:
    [color=blue]
    > 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.[/color]



    --

    Comment

    • google@impliedbydesign.com

      #3
      Re: simulate send data with POST and get data from a Web Page (whith a session)


      _mario.lat@libe ro.it wrote:[color=blue]
      > 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?[/color]

      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


      Comment

      Working...