• Im trying to call the xmlrpc interface to create a new page, so far so good. But I get a 403, I think the password is not accepted I think because it contains some characters that it tries to &.. escape. So…

    $request = xmlrpc_encode_request($method,$params);

    do I need to add in the array of $params something else to not make it escape the password?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter cogmios

    (@cogmios)

    The problem is really the escaping I have two problems resulting out of that:

    1) My password is not accepted because it contains escaped characters:

    4uzBRCh2T7iWj83Nd3A21nN2bBXD2$@zmIBFOxtx86o%7S8YF!SvVxkG5Y#u3jAO*q%t$8QnNFge#q1KZalLk4LKdRhOe#ZwGBdxttRN^1@1&XYUeGmMyHrhBgC9ZfXYtP*%nsOYINLYGSpi%bvArHBka50@JSBDWPyVwgvEqy%7EADK2I&6SmzXsB3*s8crYzUsiIx27D7&a%#geKf8LwSWuF!f75xLpEgCKbpelGPCow00moLCL$TeiNoE$K*c

    2) the PHP code I want to include becomes escaped instead of the php code I want to have on the page e.g. the page contents look like:

    <?php = "

    instead of the php code ( this is after I have changed my password to “helloworld” to test if it really was the escaping).

    What should I do to prevent this in my php code? I already added the CDATA option:

    $output_options = array( "output_type" => "xml",
    		"verbosity" => "pretty",
    		"escaping" => array("cdata", "markup", "non-ascii", "non-print"),
    		"version" => "xmlrpc",
    		"encoding" => "utf-8" );

    but that did not change anything in the tags itself besides placing cdata tags around everything.

    Thread Starter cogmios

    (@cogmios)

    I changed it to

    $output_options = array( "output_type" => "xml",
    		"verbosity" => "newlines_only",
    		"escaping" => array("cdata", "non-ascii", "non-print"),
    		"version" => "xmlrpc",
    		"encoding" => "utf-8" );

    which already helps a lot but still not the password problem.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘xmlrpc Password Error’ is closed to new replies.