Re:Hashbang URIs Aren't as Bad as You Think
by Isofarro on Thursday February 17, 2011 @09:51AM
(#2231087)
> sed 's/#!\///g' urls.txt | xargs curl
So easy, you've actually got it wrong.
Certain special characters after the hash-bang need to be url-encoded, and then that value needs to be added to what's before the #! by including a query string parameter of _escaped_fragment_, checking first whether there is already a query string so as to append the information rather than incorrectly whacking on a '?'.
Plus, this isn't in the form of interpretive dance. So no content for you.
Re:Hashbang URIs Aren't as Bad as You Think
by jarin on Thursday February 17, 2011 @10:01AM
(#2231121)
Ok fine, so it will take 10 minutes to whip up and test a quick Ruby script instead of 30 seconds to think of the regular expression. I stand corrected.
Re:Hashbang URIs Aren't as Bad as You Think
by spjwebster on Thursday February 17, 2011 @11:56AM
(#2231640)
Now multiply that 10 minutes by number of scripts, utilities, libraries and applications in the world that handle URLs, and you'll be somewhere close to the magnitude of effort required to work around these broken URLs.
Yeah, not that hard dude.