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

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


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-06-2006
_mario.lat@libero.it
 
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.
Reply With Quote
  #2 (permalink)  
Old 03-06-2006
iuz
 
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:

> 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
Reply With Quote
  #3 (permalink)  
Old 03-06-2006
google@impliedbydesign.com
 
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:
> 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

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:12 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0