Re: the problem with the document about CFHTTPMessageCopyAllHeaderFields
Re: the problem with the document about CFHTTPMessageCopyAllHeaderFields
- Subject: Re: the problem with the document about CFHTTPMessageCopyAllHeaderFields
- From: Jeremy Wyld <email@hidden>
- Date: Thu, 9 Dec 2004 11:03:26 -0800
On Dec 7, 2004, at 10:52 PM, Alex Guo wrote:
According the document provided by Apple, the type of return value of
function CFHTTPMessageCopyAllHeaderFields is of CFStringRef, but
actually,
it should be CFDictionaryRef...
Good catch! I've filed a bug against the documentation.
After receive all http response message, I write this dictionary to a
plist file, but I can't find any http header field and value in the
plist
file. Anybody could give me some tips ? Thanks in advance.
Hopefully, some of my other email will help you out with this.
Once you receive your read event (based upon the code I saw
previously), you should be able to copy the http response as I
suggested. If you stop in the debugger after you copy the property,
you should be able to copy all the headers and CFShow() that result.
Make sure that you're seeing what you think you should be seeing. Is
the headers dictionary empty? If so, CFShow() the response and make
sure you've got a valid response which is associated with your request.
jeremy
_______________________________________________
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