Remove this ad

some of my rss feeds does not work (due to URL encoding incorrect)

Rss     Subscribe     Share     Tweet    


0 Points

Lead

Jan 21 16 1:23 AM

Tags : :

Hello,
Some of our RSS Feeds is not displayed on TheOldReader. (no result? but firefox shows all of my feeds)
Not working Example:
https://www.parlament.gv.at/PAKT/PR/filter.psp?view=RSS&jsMode=RSS&xdocumentUri=%2FPAKT%2FPR%2Findex.shtml&JAHR=2016&anwenden=Anwenden&R_THSAST=TH&THEMA=ALLE&SUCH=&listeId=110&FBEZ=FP_010
Working Example:
https://www.parlament.gv.at/PAKT/STPROT/filter.psp?view=RSS&jsMode=RSS&xdocumentUri=%2FPAKT%2FSTPROT%2Findex.shtml&NRBRBV=NR&anwenden=Anwenden&NUR_VORL=N&R_PLSO=PL&GP=XXV&SUCH=&listeId=211&FBEZ=FP_011

Please check the logfiles. Whats wrong? My RSS or TheOldReader?
THX.

Last Edited By: mango Jan 21 16 2:51 AM. Edited 1 time

Quote    Reply   
Remove this ad
Remove this ad

#1 [url]

Jan 21 16 2:21 AM

mango wrote:
Hello,
Some of our RSS Feeds is not displayed on TheOldReader. (no result? but firefox shows all of my feeds)
Not working Example:
https://www.parlament.gv.at/PAKT/PR/filter.psp?view=RSS&jsMode=RSS&xdocumentUri=%2FPAKT%2FPR%2Findex.shtml&JAHR=2016&anwenden=Anwenden&R_THSAST=TH&THEMA=ALLE&SUCH=&listeId=110&FBEZ=FP_010
Working Example:
https://www.parlament.gv.at/PAKT/STPROT/filter.psp?view=RSS&jsMode=RSS&xdocumentUri=%2FPAKT%2FSTPROT%2Findex.shtml&NRBRBV=NR&anwenden=Anwenden&NUR_VORL=N&R_PLSO=PL&GP=XXV&SUCH=&listeId=211&FBEZ=FP_011

Please check the logfiles. Whats wrong? My RSS or TheOldReader?
THX.

Problem seems to be a double Encoded / in the URL.
'%2F' is an encoded /. Thats OK.
But sometimes %2F is encoded to %252F. Not OK. 
Solution: See http://tkurek.blogspot.co.at/2013/06/252f-instead-of-2f-in-url-apache.html

 

Quote    Reply   

#2 [url]

Jan 21 16 2:48 AM

Found the Problem.
TheOldReader is doing a Double-Encoding of the Subscribed URL.
When i subscribe this URL:
https://www.parlament.gv.at/PAKT/ENQK/filter.psp?view=RSS&jsMode=RSS&xdocumentUri=%2FPAKT%2FENQK%2Findex.shtml&NRBR=NR&anwenden=Anwenden&GP=XXV&ENQK=ALLE&SUCH=&listeId=106&FBEZ=FP_006
The resulting Request from theoldreader is:
"GET /PAKT/ENQK/filter.psp?view=RSS&jsMode=RSS&xdocumentUri=%252FPAKT%252FENQK%252Findex.shtml&NRBR=NR&anwenden=Anwenden&GP=XXV&ENQK=ALLE&SUCH=&listeId=106&FBEZ=FP_006 HTTP/1.1
This is not the correct Request URL.
Please fix this incorrect URL Encoding.

Quote    Reply   

#3 [url]

Jan 21 16 12:12 PM

Hello

It is actually not us that is re-encoding the URL, it is the server's redirect code that is causing the issue.

We try to normalize URLs so that we can avoid duplicates, so we strip the "www" from all urls and attempt the request that way. That way, if a user adds the feed www.engadget.com/feed.xml and engadget.com/feed.xml, we normalize that into a single feed.

This site is redirecting the "naked" domain back to the "www" subdomain, but is also altering the querystring. See the "Location" header from the following request. You can see that the query string is being altered at that point.

$ curl -I "https://parlament.gv.at/PAKT/PR/filter.psp?view=RSS&jsMode=RSS&xdocumentUri=%2FPAKT%2FPR%2Findex.shtml&JAHR=2016&anwenden=Anwenden&R_THSAST=TH&THEMA=ALLE&SUCH=&listeId=110&FBEZ=FP_010"
HTTP/1.1 301 Moved Permanently
Date: Thu, 21 Jan 2016 20:08:33 GMT
Server: Apache
Strict-Transport-Security: max-age=31536000
Location: https://www.parlament.gv.at/PAKT/PR/filter.psp?view=RSS&jsMode=RSS&xdocumentUri=%252FPAKT%252FPR%252Findex.shtml&JAHR=2016&anwenden=Anwenden&R_THSAST=TH&THEMA=ALLE&SUCH=&listeId=110&FBEZ=FP_010
Vary: Accept-Encoding
Content-Type: text/html; charset=iso-8859-1

Quote    Reply   
Add Reply

Quick Reply

bbcode help