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-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: [PHP] How to simulate any browser

2001-10-03 Thread ReDucTor

with HTTP 1.1, you just need the normal url, for the GET, but if you want to
use POST or something, you do strlen() and get the length, set the
contentlength, then you send it...make sure to do urlencode before sending
stuff via get, or doing stuff with POST...i wrote a perl POST Client,
because my host doesn't feel the need to tell me the path ot php, and
doesn't reply to emails, so i wrote a perl http client that uses the POST
method, grabs everything from the stdin and just sends it there...hehe :D

So i learn't a bit on the http specifications...


btw it might be an idea to try

$output = file("http://site.com/website?arg1=valuearg2=value2");

- Original Message -
From: "Kamil Nowicki" [EMAIL PROTECTED]
To: "PHP-list" [EMAIL PROTECTED]
Sent: Thursday, October 04, 2001 1:46 AM
Subject: [PHP] How to simulate any browser



 Hello everyone!

 I have a problem. My webpage (say webpage_1) needs to get some data
 presented on other webpage (wepage_2). I tried to use
 fopen("http://webpage_2?params","r") and got connection and stuff, but
 I suppose that webpage_2 uses some script checking what type of
 browser sent the request, and sends back an error message. I do not
 have cURL library installed (and I can't install it cause I'm not
 an administrator of the server and my administrator doesn't want to
 install it) so I can't use it to pretend my PHP request is from
 IE, Netscape or any other WWW browser.
 I was thinking abous using sockets to communicate directly and
 make a HTTP request manually, but I do not know the HTTP request
 specifications (how to send all needed info including browser id).

 If You know how to send browser info to WWW server using standard
 PHP functions or some common libraries' functions, than PLEASE HELP ME.

 Thanx in advance.

  Kamil 'Hilarion' Nowicki

 PS.: I can send phpinfo() of my server on Your request.


 --
 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=valuearg2=value2");
Works just like:
$fd = fopen("http://site.com/website?ag1=value1arg2=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]




Re: [PHP] How to simulate any browser

2001-10-03 Thread Mark

On Wed, 3 Oct 2001 17:46:50 +0200, Kamil Nowicki wrote:

  Hello everyone!

  I have a problem. My webpage (say webpage_1) needs to get some
data
presented on other webpage (wepage_2). I tried to use
fopen(http://webpage_2?params,r;) and got connection and stuff,
but
I suppose that webpage_2 uses some script checking what type of
browser sent the request, and sends back an error message. I do not
have cURL library installed (and I can't install it cause I'm not
an administrator of the server and my administrator doesn't want to
install it) so I can't use it to pretend my PHP request is from
IE, Netscape or any other WWW browser.

look on sourceforge for a php project called snoopy


--
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=valuearg2=value2");
 Works just like:
 $fd = fopen("http://site.com/website?ag1=value1arg2=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: [PHP] How to simulate any browser

2001-10-03 Thread Maxim Maletsky \(PHPBeginner.com\)


So you need a browser of your own?
You should be using 

 fosockopen()
 php.net/fsockopen

Maxim Maletsky
www.PHPBeginner.com


-Original Message-
From: Kamil Nowicki [mailto:[EMAIL PROTECTED]] 
Sent: mercoledi 3 ottobre 2001 17.47
To: PHP-list
Subject: [PHP] How to simulate any browser



Hello everyone!

I have a problem. My webpage (say webpage_1) needs to get some data
presented on other webpage (wepage_2). I tried to use
fopen("http://webpage_2?params","r") and got connection and stuff, but I
suppose that webpage_2 uses some script checking what type of browser
sent the request, and sends back an error message. I do not have cURL
library installed (and I can't install it cause I'm not an administrator
of the server and my administrator doesn't want to install it) so I
can't use it to pretend my PHP request is from IE, Netscape or any other
WWW browser.
I was thinking abous using sockets to communicate directly and make
a HTTP request manually, but I do not know the HTTP request
specifications (how to send all needed info including browser id).

If You know how to send browser info to WWW server using standard
PHP functions or some common libraries' functions, than PLEASE HELP ME.

Thanx in advance.

 Kamil 'Hilarion' Nowicki

PS.: I can send phpinfo() of my server on Your request.


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