View Single Post
Old 06-12-2011, 12:38 PM   #1
EnergyLens
Hack
EnergyLens began at the beginning.
 
Posts: 34
Karma: 12
Join Date: Dec 2009
Device: Kobo Aura HD, Kindle Paperwhite
Exclamation HTTP Request - Mimic Different Browsers?

I am trying to write a recipe for a site that doesn't seem to respond to the calibre HTTP requests with anything valid.

When I open the RSS url in Safari it tailors the XML to the browser
feed://www.frontporchrepublic.com/feed/rss/

When I open the web site directly in a recipe:
http://www.frontporchrepublic.com
I get
HTTP Error 403: Bad Behavior

If I open the RSS url:
feed://www.frontporchrepublic.com/feed/rss/
I get
<urlopen error unknown url type: feed>

I'm guessing this is because the HTTP Request coming from Calibre doesn't specify a browser type that the web site recognizes.

Is there a way to populate the HTTP Request with information to make the website think that Calibre is Firefox or Safari?

Thanks!
EnergyLens is offline   Reply With Quote