Re: POST request without NSURLConnection
Re: POST request without NSURLConnection
- Subject: Re: POST request without NSURLConnection
- From: David Blanton <email@hidden>
- Date: Fri, 11 Jun 2004 10:24:20 -0600
On 6/11/04 7:48 AM, "Gwynne" <email@hidden> wrote:
>
On Jun 11, 2004, at 9:23 AM, Jirome Foucher wrote:
>
> Hi all,
>
>
>
> In my app, I have to make a HTTP POST request. So I looked at what was
>
> available and NSURLConnection seemed the perfect solution for it.....
>
> until I discovered in the online doc that it required Mac OS X 10.2.7
>
> or at least Safari 1.0 or newer.....
>
>
>
> Is there any alternative ?? (I don't really want to embed CURL....)
>
>
May I ask what's wrong with libCURL? Admittedly it's a third-party
>
library, and the version installed on Jaguar is so old and messy that
>
you have to link statically with a newer self-made build (I went with
>
static-linking with the Panther-installed version, myself), but it's a
>
very complete and reliable library that's not at all difficult to use,
>
and if you static-link with a self-made build it'll work right back to
>
10.1. The static linking is my personal pet-peeve, however; the library
>
builds another good 200-odd kilobytes into your executable (that's a
>
debug build; I haven't tried building with optimization flags on yet.
>
Gotta love beta cycles). But I considered that a better solution than:
>
1) Distributing different builds of my app for Jaguar and Panther
>
2) Having an installer that required authentication and restarting,
>
which I require neither of now.
>
3) Making do with the version of libcurl installed on Jaguar, which was
>
missing exaclty the HTTP POST routines I needed; said routines weren't
>
provided until 7.10.x, while Jag has 7.7.x.
>
Look "POST Example" in Developer/Examples/Networking
It runs in 10.2.8 at a minimum and is simple, clean and efficient.
db
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.