
Hello Haskell-Cafe, i write a file-processing utility and want to allow users open URLs like the usual files. for this, i need a library with minimum the following http functionality: getFileSize url readBuf url bufPtr offset size ideally, it should also support ftp and allow to create ftp files: h <- create url writeBuf h bufPtr size close h what libraries can i use? ghc 6.6.1, if it's important -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com

if you need comprehensive support of http and ftp in one api/library, as far as i know, the curl bindings are your only choice related...i promised a while back to support packaging and documentation of the curl bindings. this work is now delayed until freebsd 7 gains haskell support (due to acquiring new hardware, i had to upgrade my os). sorry to anyone who expected immediate results.

Hello brad, Friday, November 23, 2007, 10:10:41 AM, you wrote:
if you need comprehensive support of http and ftp in one api/library, as far as i know, the curl bindings are your only choice
1. Haskell binding is not mentioned at http://curl.haxx.se/libcurl/ can we do something to fix it? 2. for me, any C library is ok because i need to work with memory buffers directly 3. i don't need comprehensive support. at least just now i want to use as minimum functionality as possible in order to not inflate EXE size -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com

On Fri, Nov 23, 2007 at 10:59:55AM +0300, Bulat Ziganshin wrote:
Hello brad,
Friday, November 23, 2007, 10:10:41 AM, you wrote:
if you need comprehensive support of http and ftp in one api/library, as far as i know, the curl bindings are your only choice
1. Haskell binding is not mentioned at http://curl.haxx.se/libcurl/ can we do something to fix it?
we should not advertize it yet as it has not been properly packaged and documented (once again, i am hoping to get to this soon!) current source: http://code.haskell.org/curl/ some examples: http://hpaste.org/3529
participants (3)
-
brad clawsie
-
Bulat Ziganshin
-
Yitzchak Gale