Re: Re: [PHP] How to simulate any browser

2001-10-04 Thread Kamil Nowicki


Me again

> > And gives error page in $output.
> What does the error page have?
The error page is generated by JSP and gives me
some error with VBS and dll.
When I use cURL (on other server) to get to
the same script on the same JSP server with
the same input I get correct data (if using GET
method) or partialy correct data and type
mismatch error (if using POST method).

Kamil 'Hilarion' Nowicki


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: Re: Re: [PHP] How to simulate any browser

2001-10-04 Thread Kamil Nowicki


Thanx. I'll check it out.

> I think you need snoopy. (http://sourceforge.net/projects/snoopy/)


Kamil 'Hilarion' Nowicki


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: Re: [PHP] How to simulate any browser

2001-10-03 Thread ReDucTor

What does the error page have?
- Original Message - 
From: "Kamil Nowicki" <[EMAIL PROTECTED]>
To: "PHP-list" <[EMAIL PROTECTED]>
Sent: Thursday, October 04, 2001 2:55 AM
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,10);
> And gives error page in $output.
> 
> Kamil 'Hilarion' Nowicki
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: Re: [PHP] How to simulate any browser

2001-10-03 Thread Kamil Nowicki


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,10);
And gives error page in $output.

Kamil 'Hilarion' Nowicki


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]