【发布时间】:2010-09-17 10:20:10
【问题描述】:
我无法让 API xmlrpc 与浏览器截图一起工作,这真的很烦人。 第一种方法 $method = 'nonces.challenge'; http://api.browsershots.org/xmlrpc/nonces.challenge/
我如何获得它似乎对我不利的主机名。
nonces.verifyUser 说它需要 2 个输入,我正在使用
$params = array();
$params[username] = 'username';
$params[encrypted_password] = 'password';
$request = xmlrpc_encode_request ($method , $params);
echo "<pre>";
print_r($request);
echo "</pre>";
$context = stream_context_create(array('http' => array(
'method' => "POST",
'header' => "Content-Type: text/xml",
'content' => $request
)));
echo "<pre>";
print_r($context);
echo "</pre>";
$file = file_get_contents($browser_shots_url, false, $context);
print_r($file);
它说我缺少一个。我哪里错了?
【问题讨论】:
标签: xml api screenshot xml-rpc