Connecting Tech Pros Worldwide Help | Site Map

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

 
LinkBack Thread Tools Search this Thread
  #1  
Old March 5th, 2006, 10:35 PM
_mario.lat@libero.it
Guest
 
Posts: n/a
Default 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.

  #2  
Old March 5th, 2006, 11:15 PM
iuz
Guest
 
Posts: n/a
Default Re: simulate send data with POST and get data from a Web Page (whith a session)

_mario.lat@libero.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]

http://php.net/curl

--
www.iuz-lab.info
  #3  
Old March 6th, 2006, 04:15 PM
google@impliedbydesign.com
Guest
 
Posts: n/a
Default Re: simulate send data with POST and get data from a Web Page (whith a session)


_mario.lat@libero.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
http://www.impliedbydesign.com/free-...e-scripts.html

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.