emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] [PATCH] fix org-feed when retrieve-method is curl or wget


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

Hi Carsten and everyone. I love using org-feed, to gather various collection points (delicious, starred in google reader, dial2do, etc) into org-mode.

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;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

Attachment: 0001-fix-org-feed-when-retrieve-method-is-curl-or-wget.patch
Description: Binary data



reply via email to

[Prev in Thread] Current Thread [Next in Thread]