Page 2 of 2

Re: Couldn't download the specified URL: 0

Posted: 13 Sep 2014, 19:48
by ibreakcellphones
Have you tried downloading the feed with curl using the command line?

It could be that the site has blocked curl poorly. Try viewing the exchange with tcpdump or ssldump to see if that's the case. Try grabbing it with wget. Use debug switches for curl and wget.

Re: Couldn't download the specified URL: 0

Posted: 15 Sep 2014, 10:23
by PaintedBox
PaintedBox wrote:

Code: Select all

curl https://threema.ch/en/blog/feeds/rss


Works on that machine without any problems.

:? Strange...

Re: Couldn't download the specified URL: 0

Posted: 15 Sep 2014, 15:54
by Latimer
Just a wild guess, but did you run this command from under the same user as the one ttrss uses?

Re: Couldn't download the specified URL: 0

Posted: 15 Sep 2014, 16:17
by PaintedBox
Good point! Unfortunately it works with all users. My own, root and the http user. I have no idea...

Re: Couldn't download the specified URL: 0

Posted: 15 Sep 2014, 17:40
by JustAMacUser
Maybe try changing the user-agent.

Re: Couldn't download the specified URL: 0

Posted: 15 Sep 2014, 19:04
by PaintedBox
Thank you for your help!

Code: Select all

curl -A "Tiny Tiny RSS" https://threema.ch/en/blog/feeds/rss

runs without any problems :(

Re: Couldn't download the specified URL: 0

Posted: 15 Sep 2014, 19:16
by JustAMacUser
That's because that's not the user agent TT-RSS uses. Take a look at file_fetch_contents in functions.php.

Re: Couldn't download the specified URL: 0

Posted: 15 Sep 2014, 20:16
by PaintedBox
If you mean this, there is no difference. I can set any user-agent that I want and it works.

Code: Select all

curl -A "Tiny Tiny RSS/1.13 (http://tt-rss.org/)" https://threema.ch/en/blog/feeds/rss

Re: Couldn't download the specified URL: 0

Posted: 15 Sep 2014, 20:49
by JustAMacUser
It was a long shot, but worth trying.

Re: Couldn't download the specified URL: 0

Posted: 16 Sep 2014, 09:37
by PaintedBox
That's true. I think I will never find out the reason why it is not working as expected.