|
From: | Christopher League |
Subject: | [Orgmode] [PATCH] fix org-feed when retrieve-method is curl or wget |
Date: | Tue, 30 Jun 2009 11:59:20 -0400 |
I tried switching the org-feed-retrieve-method to curl or wget, and encountered some bugs. The fixes were simple, and the full details are in the attached git patch.
The problem I was trying to solve, however, was that delicious.com would return a "500 server error" sometimes with url.el, and I'm not sure why. It returns RSS content anyway, with the error message as an <item>. Org-feed doesn't notice the HTTP response status, and processes the error as if it were a legit item (which means that next time the error occurs, it is silent). Now that I got curl working, the 500 doesn't seem to happen anymore.
My hypotheses so far: maybe it has something to do with the user- agent, or with mangling special characters in the URL. The delicious URL contains the '&' argument separator, and when the error message comes back, it appears with something like '&amp;' in it.. as if it were replaced twice. I haven't traced further, to determine if fault lies with url.el or with delicious.com.
Best wishes Chris
0001-fix-org-feed-when-retrieve-method-is-curl-or-wget.patch
Description: Binary data
[Prev in Thread] | Current Thread | [Next in Thread] |