WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] An error occurred - -32300:transport error - could not open socket (3 posts)

  1. selvendran p
    Member
    Posted 2 years ago #

    An error occurred - -32300:transport error - could not open socket,
    Am getting this error. When am going to run a file called
    xmlrpc-client. Am using the following lines to create the xmlrpc-client in that file.
    include("wp-includes/class-IXR.php");
    $client = new IXR_Client('http://www.mywebsite.com/xmlrpc.php');
    $client->getResponse();

    Please help me what's wrong with this

  2. selvendran p
    Member
    Posted 2 years ago #

    Hi

    I have solved my problem to change my code...

  3. selvendran p
    Member
    Posted 2 years ago #

    Hi

    DEFINE('WP_XMLRPC_URL', 'http://www.mysite.com/xmlrpc.php');
    DEFINE('WP_USERNAME', '*****');
    DEFINE('WP_PASSWORD', '*****');
    require_once("wp-includes/class-IXR.php");
    $rpc = new IXR_Client(WP_XMLRPC_URL);
    $status = $rpc->query("system.listMethods"); // method name
    if(!$status){
    print "Error (".$rpc->getErrorCode().") : ";
    print $rpc->getErrorMessage()."\n";
    exit;
    }

    Am using this, That is solved my problem
    Thanks to stackoverflow for helped me..

    http://stackoverflow.com/questions/7607473/how-to-create-new-post-with-photo-attached-in-wordpress-using-xmlrpc

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags