extention request on get-url
Posted: Sat Mar 11, 2006 7:16 pm
Hi Lutz,
I would like to make a progress indicator of the download with 'get-url.
(or realtime display/scan or grab data )
(without rebuilding my own get-url function with proxy)
Its not possible currently, because there is NO signaling back about the buffer
of 'get-url. If i.e. an extra boolean function is enabled in 'get-url I could i.e. get
buffer-size indicators back form the C buffer... So when I put 'get-url into a (fork)
process I can grab the data download in the main program.
This is what im thinking about ->
(get-url str-url [str-option] [int-timeout [str-header]] [boolean])
The boolean parameter will make get-url interactive, that is.. During the
get action in C, get-url will directly return data from the buffer used in C,
or it could simply send me the total bytes back during read.
A simple (println (get-url "http://bigfiles.com")) will print me ie. OR ->
(1) the complete data directly to screen (when "list" is enabled in get-url.
(not afterwards but realtime)
(2) Print me realtime the blocks of buffer from the C buffer to the screen)
Well any other way to make 'get-url none blocking with data feedback
would be welcome too...;-)
Btw... If its none blocking in any form I dont need data feedback.. then
I could simple read the data from the variable it is set too like:
(println (setq data (get-url "somefiles" true)))
Regards, Norman.
I would like to make a progress indicator of the download with 'get-url.
(or realtime display/scan or grab data )
(without rebuilding my own get-url function with proxy)
Its not possible currently, because there is NO signaling back about the buffer
of 'get-url. If i.e. an extra boolean function is enabled in 'get-url I could i.e. get
buffer-size indicators back form the C buffer... So when I put 'get-url into a (fork)
process I can grab the data download in the main program.
This is what im thinking about ->
(get-url str-url [str-option] [int-timeout [str-header]] [boolean])
The boolean parameter will make get-url interactive, that is.. During the
get action in C, get-url will directly return data from the buffer used in C,
or it could simply send me the total bytes back during read.
A simple (println (get-url "http://bigfiles.com")) will print me ie. OR ->
(1) the complete data directly to screen (when "list" is enabled in get-url.
(not afterwards but realtime)
(2) Print me realtime the blocks of buffer from the C buffer to the screen)
Well any other way to make 'get-url none blocking with data feedback
would be welcome too...;-)
Btw... If its none blocking in any form I dont need data feedback.. then
I could simple read the data from the variable it is set too like:
(println (setq data (get-url "somefiles" true)))
Regards, Norman.