Re: URL Access problems
Re: URL Access problems
- Subject: Re: URL Access problems
- From: Keith Lockwood <email@hidden>
- Date: Tue, 7 Dec 2004 10:09:43 +1100 (EST)
Hi,
I originally tried to use the CFNetwork API (Using
CFFTP) but found that the files that I was downloading
where corrupted and could not be open. So this leads
to my next question does this API support Mac binary?
Thanks,
Keith
--- Chris Little <email@hidden> wrote:
> on 12/5/04 7:58 PM, Laurence Harris at
> email@hidden wrote:
>
> > On 12/5/04 7:03 PM, Keith Lockwood didst favor us
> with:
> >
> >> I am just learning about Mac programming so have
> some
> >> patience if don't quite understand what I am
> talking
> >> about.
> >>
> >> I saw this question posted already but it never
> had
> >> any answers to it.
> >>
> >> I am trying to download files using the ftp
> protocol
> >> and the URLDownload method. I have being using
> the
> >> sample code that came from the apple developer
> site as
> >> a guide (URLAccessSample). However both the
> sample
> >> program and my code are giving me a -30785 error
> when
> >> I call URLGetError.
> >>
> >> According to the API reference this is a
> >> kURLExtensionFailureError error, which says
> should
> >> only happen on OS 9 and earlier. I am using OS X
> >> (10.3.2) and Xcode 1.5 to develop this.
> >>
> >> Can anyone help me?
> >
> > Someone else can provide you with a solution, but
> just to ease your anxiety,
> > I'll tell you that URLAccess isn't the way to do
> this in Mac OS X based on
> > what I've read here. In fact, everything in
> URLAccess.h is being deprecated
> > in Tiger. I believe CFNetwork is the technology
> you want in Mac OS X. See:
> >
> >
>
http://developer.apple.com/documentation/Networking/Conceptual/CFNetwork/Pre
> >
>
face/chapter_1_section_1.html#//apple_ref/doc/uid/TP30001138
> >
>
> CFNetwork is definitely the API to look at. There
> is sample code at
>
>
http://developer.apple.com/samplecode/CFNetworkHTTPDownload/listing1.html
>
> You should also look at
> http://developer.apple.com/qa/qa2001/qa1291.html.
>
> URLAccess is not viable on OS X. I think that each
> release has fixed a bug
> and introduced another one.
>
> Chris
>
> _______________________________________________
> Do not post admin requests to the list. They will be
> ignored.
> Carbon-dev mailing list
> (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
>
> This email sent to email@hidden
>
Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden