Home » Web Services » Services_Trackback » Bug #6989
method autodiscover should work for trackback url,not url.
Details
| Submitted | 2006-03-02 03:41 UTC |
|---|---|
| From | surfchen at gmail dot com |
| Status | Bogus |
| Package | Services_Trackback |
| PHP Version | 5.1.2 |
| Roadmaps | (Not assigned) |
Comments
[2006-03-02 03:41 UTC] surfchen at gmail dot com
Description:
------------
method autodiscover should work for trackback url,not url.
for example,my url is http://www.surfchen.org/?p=148,I excerpt a article from http://www.php.net/?p=5.the autodiscover should find the rdf in http://www.php.net/?p=5 ,not my url 'http://www.surfchen.org/?p=148'.
so,in the method autodiscover,the code '$url = $this->_data['url'];' should change to '$url = $this->_data['trackback_url'];'
Test script:
---------------
<?php
require_once('Services/Trackback.php');
$data = array(
'id' =>rand(),
'title' => 'test title',
'excerpt' => 'excerpt...........................',
'url' => 'http://www.sdd.com',
'blog_name' => 'localblog',
'trackback_url' => 'http://movie.verycd/artists/153683/',
);
$options=array(
'httpRequest' => array(
'allowRedirects' => true,
'maxRedirects' => 5,
'useragent' => 'Trackback@VeryCD.Com'
));
$tb=&Services_Trackback::create($data,$options);
$tb->autodiscover();
var_dump($tb->send());
?>
Expected result:
----------------
bool(true)
Actual result:
--------------
bool(false)
[2006-04-29 12:43 UTC] surfchen at gmail dot com
I think that the progress should be:
autodiscover() will discover the RDF of the trackback_url,and then if a RDF being found,the trackback_url should be taken place of the trackback url in the RDF..
But now the autodiscover is discover the RDF of the url sending the trackback,not the trackback_url
[2006-04-29 16:16 UTC] surfchen at gmail dot com
Show me a example using autodiscover() and I will point out what I mean.
And sorry,My English ability is too weak to explain enough clearly what I think.