Вардан Багирян ([info]bigsauron) wrote in [info]lj_dev,

XML-RPC get chalenge

Hello,

Seems something happen with getchallenge.

My code, which worked about 3 years, now return false.
Does it changed something in interface?

Below my sources

Thank you


$request = xmlrpc_encode_request("LJ.XMLRPC.getchallenge", array());
$context = stream_context_create(array('http' => array(
'method' => "POST",
'header' => "Content-Type: text/xml",
'content' => $request
)));

$file = file_get_contents("http://www.livejournal.com/interface/xmlrpc", false, $context);

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    Your reply will be screened

    Your IP address will be recorded 

  • 2 comments

[info]duskwuff

December 6 2011, 19:50:48 UTC 5 months ago

Per the comments on the previous post, all requests (including XMLRPC requests) must contain a User-Agent header.

[info]bigsauron

December 7 2011, 01:32:50 UTC 5 months ago

thank you
Create an Account
Forgot your login or password?
Facebook Twitter More login options
English • Español • Deutsch • Русский…