Re: CFNetwork and 404
Re: CFNetwork and 404
- Subject: Re: CFNetwork and 404
- From: Ricky Sharp <email@hidden>
- Date: Mon, 3 May 2004 18:29:26 -0500
On Apr 29, 2004, at 8:20 PM, Trygve Inda wrote:
I am using the CFNetworkHTTPDownload example. In my
ReadStreamClientCallBack
function, if I have specified a bad url (expecting a 404), I never
seem to
get an error.
I get the OpenStram event, and then nothing. How can I get a 404 error
(or a
"server not found" error).
I've been looking at that example myself and have just made a first
pass at integrating it into my app.
If I specify a bad URL (e.g. non-existent domain), I do get a
kCFStreamEventErrorOccurred in my callback. However, if I use a good
domain, but non-existent resource (e.g. misnamed .html file), I only
get kCFStreamEventEndEncountered.
___________________________________________________________
Ricky A. Sharp
mailto:email@hidden
Founder & President
Instant Interactive(tm)
http://www.instantinteractive.com
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.