|
Posted by Steve on 10/13/05 01:01
> <?php
> $test = fsockopen ('http://chrome.pl', '5222');
> ?>
So nearly there... try this:
$test = fsockopen( 'chrome.pl', '5222' );
fwrite( $test, '<?xml version="1.0"?><stream:stream
xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client"
to="nastysoft.com">' );
print fread( $test, 1024 );
fclose( $test );
Server returns:
<?xml version='1.0'?><stream:stream
xmlns:stream='http://etherx.jabber.org/streams' id='434D8128'
xmlns='jabber:client' from='nastysoft.com'>
Lookin' good...
---
Steve
Navigation:
[Reply to this message]
|