I have a website which allows people to input their RSS into their profile, from which I use feeds to import.

I noticed that HTTPFetcher, can't import a feed unless it's prefixed with http:// or other scheme it considers valid.

I would argue that http:// should be implied and if no scheme exists, then it should default to http:// instead of throwing an error.

I know I could resolve this upon having my users input their URLs, but again, it should be implied and I'm not interested in throwing errors, where they do not need to be. While I tell my users to prefix with http:// many do not. Eventually, I'll be changing my code completely to verify the existence of remote RSS feeds altogether.

Simplepie for instance does not require http:// to be prefixed and instead follow 1-6 of these "Ultra-liberal" RSS locators. Unfortunately since we have a HTTPFetcher before simplepie, we don't get the benefits.

http://web.archive.org/web/20110607232437/http://diveintomark.org/archiv...
http://simplepie.org/wiki/reference/simplepie/set_autodiscovery_level

Just a suggestion.

Comments

j0rd’s picture

Status: Active » Needs review
StatusFileSize
new700 bytes

Here's my lazy patch which resolves the issue for me, but I think is a little too lazy and should perhaps be improved upon.

twistor’s picture

Assigned: Unassigned » twistor
Issue summary: View changes
Status: Needs review » Needs work

This is reasonable, but we should do it in the form, not http_request_get().

twistor’s picture

Status: Needs work » Needs review
StatusFileSize
new4.31 KB

How's this?

twistor’s picture

This changes the http fetcher form around a bit. Concealing some settings that aren't usually used.

twistor’s picture

Let's try it with the test.

twistor’s picture

Assigned: twistor » Unassigned
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.