You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of the entries in the subreddit return a 301, and I see the following in the items table:
<?xml version="1.0" standalone="yes"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
301 Moved Permanently
CURLOPT_FOLLOWLOCATION can help on some configs but not all (see safe_mode/open_basedir directives). Selfoss should migrate to something like guzzle which would solve those problems.
\helpers\WebClient cannot establish a session though. It should be possible to do with \Web but it would be probably more productive to use existing solution instead of creating our own.
I have added the /r/pics/ subreddit as a spout.
Some of the entries in the subreddit return a 301, and I see the following in the
items
table:<?xml version="1.0" standalone="yes"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
301 Moved Permanently
301 Moved Permanently
nginx/1.4.7This is the 'share' link on reddit to the entry:
https://www.reddit.com/r/pics/comments/555nqo/get_a_hammock_they_said/?ref=share&ref_source=link
I have seen this on a few entries but I'm not sure how to reliably 'force' it to happen.
Reading through the issues, there's a suggestion to fix the instapaper spout with:
curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, TRUE);
So I've added that to my reddit2.php file_get_contents_curl() method, to see if it works. I'll keep you posted.
The text was updated successfully, but these errors were encountered: