[Announce] CURLHandle (an NSURLHandle subclass) is available for playing with
[Announce] CURLHandle (an NSURLHandle subclass) is available for playing with
- Subject: [Announce] CURLHandle (an NSURLHandle subclass) is available for playing with
- From: Dan Wood <email@hidden>
- Date: Tue, 02 Oct 2001 13:58:51 -0700
Some of you know that I've been struggling to wrap the "curl" tool
into a Cocoa class, a subclass of NSURLHandle. Well, after a bit
of struggling with threading issues and dynamic library bundling
issues, I actually have something that works pretty well.
I'm going to be checking it into SourceForge when I get a chance
(it will be at <
http://curlhandle.sourceforge.net/>) but for now,
if anybody is interested, send me an e-mail (off the list) and I'll
send you a compressed project for you to play with.
Here's a summary of what is included:
CURLHandle.[hm] -- a subclass of NSURLHandle that loads http://
style URLs using libcurl <
http://curl.haxx.se/>
CURLHandle+extras.[hm] - additional methods for setting options,
pre-transfer, and for getting information, post-transfer
TestController.[hm] - not quite a web browser, but a halfway
useable GUI for setting various options, loading URLs, and seeing
if it works.
Why use CURLHandle? Well, there are some problems with the 10.1
version of NSURLHandle (already reported as bugs) with certain
URLs. Also, you can do http "POST". You can get all the headers
(for instance, you can get the content length so you can download
with a real progress bar). You will also be able to (as I get
these things working and tested) get & set cookies, use SSL, and so
forth. Also, it does loading in the background like NSURLHandle,
which isn't easy to do if you were to just directly call the
libcurl code yourself.
This will benefit from a bunch of testing & fixing, of course. Oh,
and I'm placing the code in the public domain.
So if you'd like to see it in its current state, send me a private note.
Dan
--
Dan Wood
email@hidden
http://www.karelia.com/
http://www.bikealameda.org/
Mac OS X Developer: Online Resume:
http://www.karelia.com/resume.html