docs: function parseUrl(wpUrl) { //from node-wordpress
    var urlParts, secure;
  
    // allow URLs without a protocol
    if ( !(/\w+:\/\//.test( wpUrl ) ) ) {
      wpUrl = "http://" + wpUrl;
    }
    urlParts = url.parse( wpUrl );
    secure = urlParts.protocol === "https:";
  
    return {
      host: urlParts.hostname,
      port: urlParts.port || (secure ? 443 : 80),
      path: urlParts.path.replace( /\/+$/, "" ) + "/xmlrpc.php",
      secure: secure
    };
  }