List Info

Thread: XML-RPC Plugin and PHP




XML-RPC Plugin and PHP
user name
2007-12-21 04:26:12
Hi,

Yesterday I installed the XML-RPC Plugin and tried to get
some data from
the wiki. I writed a script which should get informations
about the
supported RPC Version. But when I'm starting it, all I can
see is that
my script is never stop loading. Maybe someone could help me
please! Nor
my instructor don't know what it could be.

Here is my script:

<?php

$request =
xmlrpc_encode_request('wiki.getRPCVersionSupported', '');

$header[] = 'Host: lima-pro2' ;
$header[] = 'Content-type: text/xml';
$header[] = 'Content-length: ' . strlen($request) .
"rn";
$header[] = $request;

$ch = curl_init();

curl_setopt( $ch, CURLOPT_URL,
'http://zeiger:das$trio192.168.0.144/projects/trio101-001-test/login/xm
lrpc');
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt( $ch, CURLOPT_HTTPHEADER, $header );
curl_setopt( $ch, CURLOPT_CUSTOMREQUEST, 'POST' );
$result = curl_exec( $ch );
curl_close($ch);

echo $result;

?>

With kind regards,
Steffi

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Trac Users" group.
To post to this group, send email to trac-usersgooglegroups.com
To unsubscribe from this group, send email to
trac-users-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )