[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURL loading system

From: Richard Frith-Macdonald
Subject: Re: NSURL loading system
Date: Mon, 17 Dec 2007 11:49:02 +0000
User-agent: GNUMail (Version 1.2.0)

On 2007-12-17 10:58:07 +0000 Richard Frith-Macdonald <address@hidden> wrote:

On 2007-12-15 17:14:57 +0000 Philippe Roussel <address@hidden> wrote:

Hi all

I'm trying to GET/PUT files over HTTP and I'm a little confused by the
different possibilities offered by GNUstep. Is it better to use NSURL
facilities, NSURLHandle or NSURLConnection ?
What's the status of the classes implementations ? Do they match their
Cocoa versions in the last gnustep-base release ?

NSURLHandle is complete, and actually goes well beyond what the Apple implementation offers since the apple version was rather poor and needed quite a bit of enhancement.

The newer classes were introduced by Apple to remedy the shortcomings of their NSURLHandle stuff, but these classes are incomplete in GNUstep.

What I'd *like* people to do is write code that works on both systems, by completing the implementation of the new classes in GNUstep (and contributing them of course) and using the newe API, but if you really just want something to work on GNUstep, and need to go beyond the most basic use of http, then NSURLHandle will do the job.

PS. If all you want is support for authentication ... it should be fairly easy to add that to NSURLConnection based on the code in NSURLHandle because the code in NSURLHandle already uses the new Apple classes to handle authentication. It supports (and is quite well tested for) both basic and digest authentication.

On the other hand, if you want HTTPS support in NSURLConnection on ms-windows, there is rather more work to be done as it needs SSL to be added to NSStream. The current HTTPS support in NSURLHandle is not NSStream based and does not work on ms-windows,. I think adding support for SSL (ideally using GNUTLS, but perhaps optionally using OpenSSL) to NSStream for both unix and windows would be great, and would make adding HTTPS support to NSURLConnection almost trivial.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]