Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL issue with feeds from Oxford University Press #1235

Closed
msspektor opened this issue Jan 28, 2019 · 3 comments

Comments

Projects
None yet
2 participants
@msspektor
Copy link

commented Jan 28, 2019

I want to subscribe to some RSS feeds of academic journals that are published by Oxford University Press. However, none of them work with Vienna (since at least version 3.5.*, cannot remember from before that), but I can access them through Google Chrome or curl. For example, here is the feed for the Journal of Consumer Research: https://academic.oup.com/rss/site_5397/3258.xml. The activity monitor outputs the following error:

Connecting to https://academic.oup.com/rss/site_5397/3258.xml
Error retrieving RSS feed: The network connection was lost.

On cocoaforge (https://forums.cocoaforge.com/viewtopic.php?f=18&t=27120), it was suggested that it might be an SSL problem:

curl: (56) LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

@barijaona

This comment has been minimized.

Copy link
Member

commented Jan 28, 2019

This site seems to be picky on User-Agent. Connection is reset, either on http or https, if I use curl and let it send its default user agent.

Everything works as expected if I use curl and spoof a Mozilla Firefox user agent or a Safari user agent.

$ curl -i https://academic.oup.com/rss/site_5397/3258.xml
curl: (56) LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
$ curl -i http://academic.oup.com/rss/site_5397/3258.xml
curl: (56) Recv failure: Connection reset by peer
$ curl -i http://academic.oup.com/rss/site_5397/3258.xml -A "Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:10.0) Gecko/20100101 Firefox/10.0"
HTTP/1.1 301 Moved permanently
Location: https://academic.oup.com/rss/site_5397/3258.xml
Connection: close
Cache-Control: no-cache
Pragma: no-cache
$ curl -i https://academic.oup.com/rss/site_5397/3258.xml -A "Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:10.0) Gecko/20100101 Firefox/10.0"
HTTP/1.1 200 OK
Set-Cookie: JSESSIONID=98B1402AD0780ACCB837BCFDC948838F; Path=/; HttpOnly
Accept-Ranges: bytes
Server: Microsoft-IIS/10.0
ETag: "f49df2b04c78d41:0"
Last-Modified: Fri, 09 Nov 2018 16:53:08 GMT
Date: Mon, 28 Jan 2019 11:35:43 GMT
X-SCM-Server-Number: 01
X-Powered-By: ASP.NET
Content-Type: text/xml
Content-Length: 23778
Set-Cookie: NSC_TDN_QSPE_PVQ.Xfc.THL_443=ffffffff09099b1a45525d5f4f58455e445a4a4229a0;expires=Mon, 28-Jan-2019 12:05:44 GMT;path=/;secure;httponly

@barijaona

This comment has been minimized.

Copy link
Member

commented Jan 28, 2019

Interestingly,

curl -i https://academic.oup.com/rss/site_5397/3258.xml -A "Vienna/6928 CFNetwork/902.1 Darwin/17.7.0 (x86_64)"

(which is very similar to the default one by NSURLSession, cf. commit b2e9b45) aborts, while

curl -i https://academic.oup.com/rss/site_5397/3258.xml -A "Vienna/6928 Darwin/17.7.0 (x86_64)"

(without the part about CFNetwork) works fine…

barijaona added a commit to barijaona/vienna-rss that referenced this issue Feb 2, 2019

Modify User-Agent header used for fetching feeds
Change needed to fetch feeds from Oxford University Press (issue ViennaRSS#1235)

Instead of the default one set by NSURLSession [which looks like
“Vienna/7050 CFNetwork/976 Darwin/18.2.0 (x86_64)”], we now have for
our UserAgent a string similar to:
“Vienna/7050 (Macintosh; Intel macOS 10_14_2)”

@barijaona barijaona self-assigned this Feb 2, 2019

@barijaona

This comment has been minimized.

Copy link
Member

commented Feb 11, 2019

Solved by version 3.5.4

@barijaona barijaona closed this Feb 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.