08-28-2008, 09:47 AM | #16 |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Surf the internet from within a .imp ebook?
I'm playing with the idea of embedding weblinks in a .imp ebook, and then loading it onto the ebook reader with Linreb after putting the .imp ebook into the 'shelf' directory.
I wanted to see how I could enable the reader to access the internet, not from the content html pages, but from an opened .imp ebook. I failed (for now...) since the 'register.ebooksystem.net' was not being forwarded to the internet, but to Linreb. Linreb cannot yet fetch webpages. I tried to forward just this request to privoxy, but got into an endless loop. Requires a bit more study. BTW, the HTTP request sent by the ebook reader was logged as: Code:
http://register.ebooksystem.net/form/redirect.asp?target=http%3A%2F%2Fwiki%2Emobileread%2Ecom%2Fwiki%2FMain_Page&pubid=None%3Aebook%3Aguid-237ceaa3f5cb49b281ca33724a38bc5b EDIT: Oops, I carelessly uploaded a .imp that was only for the REB1200. These attachments correct that! Please note that the .imp below is for the EBW1150 and _1200.imp for REB1200. Last edited by nrapallo; 08-30-2008 at 02:00 PM. Reason: Corrected/uploaded .imp for EBW1150 and _1200.imp for REB1200 |
08-28-2008, 02:23 PM | #17 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
This is the description in the "default.action" file that is giving me hope to get this to work: Code:
# +fast-redirects{check-decoded-url} # +fast-redirects{simple-check} # Many sites, like yahoo.com, don't just link to other sites. # Instead, they will link to some script on their own server, # giving the destination as a parameter, which will then redirect # you to the final target. # # URLs resulting from this scheme typically look like: # http://some.place/some_script?http://some.where-else # # Sometimes, there are even multiple consecutive redirects encoded # in the URL. These redirections via scripts make your web browsing # more traceable, since the server from which you follow such a link # can see where you go to. Apart from that, valuable bandwidth and # time is wasted, while your browser asks the server for one redirect # after the other. Plus, it feeds the advertisers. # # The +fast-redirects{check-decoded-url} option enables interception of # these requests by Privoxy, who will cut off all but the last valid URL # in the request and send a local redirect back to your browser without # contacting the intermediate sites. NOTE: Syntax change as of v.3.0.4. It seems privoxy is a very sophisticated program with abilities that need to be looked at more closely... |
|
Advert | |
|
08-28-2008, 02:51 PM | #18 |
Addict
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
Nick, I'm writing my own HTTP proxy in python (called impserve, naturally!) which should both serve local content, remote content over the web and the bookshelf. I'm grateful to linreb for leading the way, but it's not code which you can hack upon easily. I should be done today or tomorrow so I don't think we'll need to use Privoxy or any other software, I hope
|
08-28-2008, 03:11 PM | #19 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
I'll wait for your 'impserve' solution! Talk about tackling the "low-hanging fruit" first, you have made great strides in .imp programming tools evolution. Way to go, Ashish! |
|
08-28-2008, 05:19 PM | #20 |
Connoisseur
Posts: 81
Karma: 480
Join Date: Dec 2004
|
It seems the reader sends all web page requests from links within an ebook to ETI servers for redirection. In order to bypass them you need to extract the required URL.
I've managed to make it work with privoxy by adding this code into default.action file. Code:
{+fast-redirects{check-decoded-url}} bookshelf.ebooksystem.net/form/redirect.asp? By the way, ashkulz, if you want to let your impserve download IMP books from mobileread.com you'll have to change their HTTP response header. Whenever you download an IMP file from them, they handle the file with this header "Content-type: unknown/unknown" and it should be "application/x-softbook". Plus, take a look at the way mobileread writes their links: their href field omits domain name. The readers http client can't understand that. |
Advert | |
|
08-28-2008, 05:29 PM | #21 |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Thanks Ret, again, for the solution to our problems/hurdles!
Will try this out soon... |
08-28-2008, 05:32 PM | #22 |
Connoisseur
Posts: 81
Karma: 480
Join Date: Dec 2004
|
I forgot to add that the code I included didn't work with all URLs in your test imp file.
For some reason only google news .CA worked flawlessly, some others didn't work, and sometimes the reader crashed showing some kind of memory dump |
08-28-2008, 05:39 PM | #23 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
Now where to collect and store all those interesting sites... wiki? thread? Do you have any suggestions? |
|
08-28-2008, 07:30 PM | #24 |
Addict
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
I've posted the software I was talking about, impserve-0.1. Let me know if you have any bug reports or suggestions... it's 5am here, so I'll look at them tomorrow
|
08-28-2008, 07:42 PM | #25 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
Much appreciated, Ashish. You have always been an inspiration. You started me programming .imp format tools and look what has been accomplished here since those PDFRead v1.7 days, a year ago... |
|
08-29-2008, 08:22 AM | #26 |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Hey, we made it to the "Week's Hot Topics" listing on the Mobileread Home page!
Let's keep this thread alive with user suggestions/improvements, list of cool websites visited, websites that don't work and should be avoided, amusing stories explaining this "ability" to co-workers, etc... EDIT: To easily surf the internet WITHOUT using the (limited) Linreb or Privoxy, please use Impserve and be sure to download all of the Impserve plugins to allow the downloading of content directly from the internet to your ebook reader!!! Last edited by nrapallo; 02-22-2009 at 10:56 PM. Reason: better to use Impserve for Surfing the Internet! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
About the Keyboard in EBW1150 | locomouse | Fictionwise eBookwise | 2 | 12-11-2009 01:35 PM |
Surf the Internet (Revisited) - sort of! | nrapallo | Fictionwise eBookwise | 5 | 04-28-2009 08:28 AM |
64 MB ebw1150 | cyan | Fictionwise eBookwise | 21 | 02-18-2009 02:49 PM |
Linreb - eLibrarian for REB1200 and EBW1150 | nrapallo | Fictionwise eBookwise | 8 | 10-01-2008 07:23 PM |
TIP: Surf just the images in an ebook | nrapallo | IMP | 8 | 04-14-2008 10:17 PM |