Re: Downloading a file from a URL from the web with http-get

2014-08-16 Thread Ludovic Courtès
FWIW, Guix also has an FTP client in (guix ftp-client), and it’s independent from the rest of Guix: http://git.savannah.gnu.org/cgit/guix.git/tree/guix/ftp-client.scm It also uses (web client) extensively, with the GnuTLS Guile bindings for HTTPS: http://git.savannah.gnu.org/cgit/guix.git/tr

Re: Downloading a file from a URL from the web with http-get

2014-08-15 Thread Mario Domenech Goulart
Hi, On Fri, 15 Aug 2014 13:46:46 -0700 Mike Gran wrote: >> On Friday, August 15, 2014 11:16 AM, 白熊 wrote: >> Is there a way to use similar syntax to download ftp files? >> I can successfully download only http:// files this way. > > I don't know if anyone has a pure Scheme code solution to ha

Re: Downloading a file from a URL from the web with http-get

2014-08-15 Thread Mike Gran
> On Friday, August 15, 2014 11:16 AM, 白熊 wrote: > Is there a way to use similar syntax to download ftp files? > I can successfully download only http:// files this way. I don't know if anyone has a pure Scheme code solution to handle FTP. There was once a binding to the libcurl library tha

Re: Downloading a file from a URL from the web with http-get

2014-08-15 Thread 白熊
On 2014年8月4日 18:57:57 CEST, Dmitry Bogatov wrote: >So here is example for other url: > > (use-modules ((web uri) #:select (string->uri)) >((web client) #:select (http-get))) > (use-modules (rnrs io ports)) > > (define *url* > "http://hackage.haskell.

Re: Downloading a file from a URL from the web with http-get

2014-08-05 Thread Dmitry Bogatov
* 白熊 [2014-08-05 03:56:03+0400] > Also, is there a way to determine the exact file size, so I could > check before downloading, if the file has already been downloaded, > i.e. same size on disk as on the web, or if the prior download failed, > i.e. smaller size on disk, than the web? > > I thought

Re: Downloading a file from a URL from the web with http-get

2014-08-04 Thread 白熊
On 2014年8月4日 20:57:57 GMT+04:00, Dmitry Bogatov wrote: >It seems that `http-get` do not manage SSL, and >GNU site 302 to https version (or is it just my proxy config?) Thank you, Dmitry. It seems to be your setup, as your code example works for me also on the GNU site. >So here is example

Re: Downloading a file from a URL from the web with http-get

2014-08-04 Thread Dmitry Bogatov
* 白熊 [2014-08-04 12:12:03+0400] > Hello everybody: > > I'm learning Guile. I'd like to write a utility, which will enable me > upon user input download program sources from the web, i.e. not a > web-spider, but download discrete URL's and save them to disk. > > I've looked at: > > http://lists.gnu

Downloading a file from a URL from the web with http-get

2014-08-04 Thread 白熊
Hello everybody: I'm learning Guile. I'd like to write a utility, which will enable me upon user input download program sources from the web, i.e. not a web-spider, but download discrete URL's and save them to disk. I've looked at: http://lists.gnu.org/archive/html/guile-user/2012-04/msg00032.