• 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: CFHTTP +authentication
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFHTTP +authentication


  • Subject: Re: CFHTTP +authentication
  • From: Peter Blazejewicz <email@hidden>
  • Date: Sun, 25 Jan 2009 21:40:06 +0100

hi John,

On Jan 25, 2009, at 8:21 PM, John Michael Zorko wrote:
Hello, all ...

I guess this is more of a Core Foundation question, but it still seemed more apropos to this list than Carbon-dev. Please let me know if i'm wrong :-)

there is better group then Carbon-dev: http://lists.apple.com/mailman/listinfo/macnetworkprog/

1. How do I get the HTTP return code? I use CFHTTPMessageCreateRequest() to create the GET request, and CFReadStreamCreateForHTTPRequest() to create a CFReadStream for said request. How do I get the response of the request?

Details depends if your read stream is blocking or asynchronous. In general getting status code is two steps:
#1 create response message reference from read stream
#2 get status code from response instance:
see section "Checking response":
file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/documentation/Networking/Conceptual/CFNetwork/CFHTTPTasks/chapter_5_section_6.html #//apple_ref/doc/uid/TP30000230-61101


regards,
Peter

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >CFHTTP +authentication (From: John Michael Zorko <email@hidden>)

  • Prev by Date: Re: Class introspection [was Re: Forcing allocation of a subclass]
  • Next by Date: NSArray KVC proxy
  • Previous by thread: Re: CFHTTP +authentication
  • Next by thread: Re: Targeting Tiger
  • Index(es):
    • Date
    • Thread