Author: jfthomps
Date: Mon Mar 19 19:22:59 2012
New Revision: 1302606

URL: http://svn.apache.org/viewvc?rev=1302606&view=rev
Log:
VCL-443
update XMLRPC example to use API v2

looks like it was correct for APIv2 but just had X-APIVERSION specified 
incorrectly as 1

Modified:
    incubator/vcl/trunk/web/.ht-inc/xmlrpc_example.php

Modified: incubator/vcl/trunk/web/.ht-inc/xmlrpc_example.php
URL: 
http://svn.apache.org/viewvc/incubator/vcl/trunk/web/.ht-inc/xmlrpc_example.php?rev=1302606&r1=1302605&r2=1302606&view=diff
==============================================================================
--- incubator/vcl/trunk/web/.ht-inc/xmlrpc_example.php (original)
+++ incubator/vcl/trunk/web/.ht-inc/xmlrpc_example.php Mon Mar 19 19:22:59 2012
@@ -21,7 +21,7 @@ session_start();
 $url = "http://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}";
 print "<a href=\"$url?state=test\">Test</a><br>\n";
 print "<a href=\"$url?state=listimages\">List Available Images</a><br>\n";
-print "<a href=\"$url?state=addrequest\">Add request for Maple 10</a><br>\n";
+print "<a href=\"$url?state=addrequest\">Add request for Test Image 
1</a><br>\n";
 print "<a href=\"$url?state=requeststatus\">Get status of request</a><br>\n";
 print "<a href=\"$url?state=connectdata\">Get connection data</a><br>\n";
 print "<a href=\"$url?state=endrequest\">End request</a><br>\n";
@@ -91,7 +91,7 @@ function remoteVCLCall($method, $args) {
        $header  = "Content-Type: text/xml\r\n";
        $header .= "X-User: userid\r\n";    // user your userid here
        $header .= "X-Pass: password\r\n";  // user your password here
-       $header .= "X-APIVERSION: 1";       // this is to allow for future 
changes to the api
+       $header .= "X-APIVERSION: 2";       // this is to allow for future 
changes to the api
        $context = stream_context_create(
                array(
                        'http' => array(


Reply via email to