Posted by sharma on 03/10/06 12:14
Hi,
I Have a page which will take authentication from a diffrent page from
a difrent website.
My program needs to call a page like this from php page lets say:
www.abc.com?handshake.jsp?userid=ettey1234&authtoken=94399843
my php page is at www.xyz.com
based on this url's response i need to print the result on my php page?
I tried this..
$url="http://120.126.79.21:6080/AutoPrintWeb/apvalidator.jsp?tempid=$tempid&authtoken=$authtoken&ipaddress=$rmtadd";
$fp = fopen($url, 'r');
$response1=stream_get_meta_data($fp);
print_r($response1);
The reukt is like this:
Array ( [wrapper_data] => Array ( [0] => HTTP/1.1 200 OK [1] => Server:
Apache-Coyote/1.1 [2] => Set-Cookie:
JSESSIONID=B55CA82D1790D6C0A9E20ED1CEDBB1B9; Path=/AutoPrintWeb [3] =>
Content-Type: text/html;charset=UTF-8 [4] => Content-Length: 382 [5] =>
Date: Fri, 10 Mar 2006 10:22:41 GMT [6] => Connection: close )
[wrapper_type] => http [stream_type] => tcp_socket [mode] => r+
[unread_bytes] => 382 [seekable] => [uri] =>
http://193.186.79.21:6080/AutoPrintWeb/apvalidator.jsp?tempid=someusername&authtoken=efiqxACNV157&ipaddress=127.0.0.1
[timed_out] => [blocked] => 1 [eof] => )
I need only sucesss or fail..
Plz guide me. Thanks in advance.
Sharma
[Back to original message]
|