Hi Erol,
Thanks for your reply, mines below:-- Michael Seiferle Sent from my mobile, sorry for the brevity.
On Thursday, 3. May 2012 at 20:06, Erol Akarsu wrote:
Michael,
Thanks for reply.
I think that should be easy to enhance current basex HTTP support to other url types like here file:/// for local html files.
We will replace with url fetch with local file downloading.
I guess it would be easy to allow http requests and somehow misuse them for local access, on the other hand using tagsoup and the doc() function will allow requesting files via both, http or the local filesystem with well defined semantics.
I mean how would you post/put to file://, how will you handle request and response headers etc. - http offers a lot of options and means to access resources, that can not be mapped to local files without adding another layer of indirection, eg WebDAV.
What are your concerns with using doc(file://) & doc(http://), maybe I am missing something obvious?
Isn't it?
Well, imho it depends ;-) Maybe there are more opinions on our list?
Erol Akarsu
Michael
On Thu, May 3, 2012 at 2:00 PM, Michael Seiferle <ms@basex.org (mailto:ms@basex.org)> wrote:
Hi Erol, hi list,
I just re-read my last email: the "I don't think so"-part is a little misleading, I have not read your mail carefully enough I guess.
I was referring to your code example:
http:send-request(<http:request method='get' status-only='false'/>, 'file:///D:/tmp/b000187585.htm')
-> this is indeed impossible, yet:with Tagsoup on the classpath, HTML parsing is fully supported as pointed out in the wiki.
Sorry for the confusion, had a long day :-)
Kind regards Michael
Am 03.05.2012 um 19:42 schrieb Michael Seiferle:
I don't think so; unless you provide a web server running locally, as the HTTP module relies on the http protocol.