aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-26 23:10:40 -0700
committerFriendika <info@friendika.com>2011-05-26 23:10:40 -0700
commitecb300177cf6996170a77880d771f0aa20f2cf11 (patch)
treeebf8fd7b06c66c7f45e3908d15347ddda3a75542 /include
parent341f853b042f0f4dcdc5e256c46a25c402d2de2e (diff)
downloadvolse-hubzilla-ecb300177cf6996170a77880d771f0aa20f2cf11.tar.gz
volse-hubzilla-ecb300177cf6996170a77880d771f0aa20f2cf11.tar.bz2
volse-hubzilla-ecb300177cf6996170a77880d771f0aa20f2cf11.zip
troublesome feed was a 307 redirect. We didn't recognise 307
Diffstat (limited to 'include')
-rw-r--r--include/Scrape.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/Scrape.php b/include/Scrape.php
index 1a9c03c8e..505d2bf99 100644
--- a/include/Scrape.php
+++ b/include/Scrape.php
@@ -446,9 +446,16 @@ function probe_url($url) {
$feed = new SimplePie();
$xml = fetch_url($poll);
+ logger('probe_url: fetch feed: ' . $poll . ' returns: ' . $xml, LOGGER_DATA);
+ $a = get_app();
+
+ logger('probe_url: scrape_feed: headers: ' . $a->get_curl_headers(), $LOGGER_DATA);
+
$feed->set_raw_data($xml);
$feed->init();
+ if($feed->error())
+ logger('probe_url: scrape_feed: Error parsing XML: ' . $feed->error());
if(! x($vcard,'photo'))
$vcard['photo'] = $feed->get_image_url();