Re: Re: [PHP] How to simulate any browser
| From: | Papp Gyozo | Date: | Wed, 03 Oct 2001 17:27:05 +0000 |
| Subject: | Re: Re: [PHP] How to simulate any browser | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-69796@lists.php.net to get a copy of this message | ||
Hi,
I think you need snoopy. (http://sourceforge.net/projects/snoopy/)
Hope this helps,
Papp Gyozo
- pgerzson@freestart.hu
----- Original Message -----
From: "Kamil Nowicki" <hilarion@elfin.pl>
To: "PHP-list" <php-general@lists.php.net>
Sent: Wednesday, October 03, 2001 6:55 PM
Subject: Re: Re: [PHP] How to simulate any browser
>
> Hello again
>
>
> I suppose I was not precise enough.
>
> > with HTTP 1.1, you just need the normal url, for the GET,
> And what do I do with it? How to send it as a request?
>
> > but if you want to
> > use POST or something, you do strlen() and get the length, set the
> > contentlength, then you send it...
> How? Open socket to the server and HTTP port and write what to it?
>
> > So i learn't a bit on the http specifications...
> Yes... But I do not know those HTTP specifications...
>
> > btw it might be an idea to try
> > $output =
> > file("http://site.com/website?arg1=value&arg2=value2");
> Works just like:
> $fd =
> fopen("http://site.com/website?ag1=value1&arg2=value2","r");
> $output = fread($fd,1000000000);
> And gives error page in $output.
>
> Kamil 'Hilarion' Nowicki
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>