|
|
Subscribe / Log in / New account

Simplify Network Programming with libCURL (O'ReillyNet)

O'ReillyNet looks at curl and the back-end library libCURL. "curl's inner workings use the libCURL client library. So can your programs, to make them URL aware. libCURL-enabled tools can perform downloads, replace fragile FTP scripts, and otherwise take advantage of networking without any (explicit) socket programming. The possibilities are endless, especially with libCURL using a MIT/X-style license agreement."

to post comments

Simplify Network Programming with libCURL (O'ReillyNet)

Posted May 6, 2005 18:28 UTC (Fri) by huffd (guest, #10382) [Link] (2 responses)

Fantastic tool for automating web applications. So nice to use a single command line of curl run by cron to do a task, much better than coding. Makes handling timed b2b FTP sessions a breeze.

Simplify Network Programming with libCURL (O'ReillyNet)

Posted May 6, 2005 20:53 UTC (Fri) by iabervon (subscriber, #722) [Link] (1 responses)

Actually, writing your thing in C isn't too hard with libcurl, and can give good results for cases where one download depends on another. In fact, it's almost easy enough that this article is unneeded. The main annoying thing is that it uses the "fwrite()" prototype for the function it calls, which is annoyingly different from the more sensible "write()" interface.

Situations where one download depends on another

Posted May 9, 2005 4:18 UTC (Mon) by xoddam (guest, #2322) [Link]

Sounds like an ideal candidate for a Makefile :-)

Another HTTP client library

Posted May 7, 2005 3:34 UTC (Sat) by rqosa (subscriber, #24136) [Link] (1 responses)

I would also recommend libneon. If I remember correctly, libcurl returns the data it downloads by writing it to a file descriptor, whereas libneon will put chunks of the data into memory and then call a callback which takes a pointer to the data as an argument. On the downside, though, I recall that libneon's documentation is incomplete and that it's necessary to look in the header files to find out about some of its functions.

Another HTTP client library

Posted May 9, 2005 7:06 UTC (Mon) by Xman (guest, #10620) [Link]

Actually, the second half of the article on libCURL demonstrates how to do downloads using callbacks instead of writing data to a file.


Copyright © 2005, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds