• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: the problem with the document about CFHTTPMessageCopyAllHeaderFields
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >the problem with the document about CFHTTPMessageCopyAllHeaderFields (From: "Alex Guo" <email@hidden>)

  • Prev by Date: Re: FD_CLOSE event occurs on a socket
  • Next by Date: Re: PAC (Proxy Auto-Config ) program interface
  • Previous by thread: the problem with the document about CFHTTPMessageCopyAllHeaderFields
  • Next by thread: PAC (Proxy Auto-Config ) program interface
  • Index(es):
    • Date
    • Thread