View Single Post
Old 02-17-2016, 08:34 PM   #1194
teejcee
Enthusiast
teejcee began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Mar 2012
Location: Sydney, Australia
Device: Kindle 3G & Paperwhite
@mariosipad

Here is an extract from a log line which I believe to be pertinent...

"GET /cops/fetch.php?data=6&type=azw3&id=3&db=3 HTTP/1.1"

And my "educated guesses" so far are...

fetch.php seems to be used to set the download up
data=6 no idea
type=azw3 * self explanatory
id=3 * id of book in the db
db=3 * library position in array defined in config_local.php

* = I'm pretty certain after a few tests against different titles in
different libraries

There is a possible show stopper and I'm uncertain to whether
there's a way around it.

This log line is written as a result of the user selecting the epub, azw3,
mobi, whatever icon to download the book. However, when the user's
browser displays the download box, the user can cancel the download,
or close the download box, therefore we are left with a log line that is false.
What I'm uncertain about is if the browser returns any value
to the calling program to indicate what the user
selected.... "OK" or "Cancel" or "X" ( close )

Cheers,
TC
teejcee is offline   Reply With Quote