Re: CFHTTP +authentication
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