CFHTTP +authentication
CFHTTP +authentication
- Subject: CFHTTP +authentication
- From: John Michael Zorko <email@hidden>
- Date: Sun, 25 Jan 2009 11:21:36 -0800
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 :-)
I'm trying to handle URLs in this format:
http://<user>:<password>@this.url.com/content
... with the <user> and <password> filled in of course. I found that
NSURLConnection handled these for me, but for reasons beyond the scope
of this question, NSURLConnection isn't a good choice for what i'm
trying to do, so i'm using CFNetwork stuff. I've a question, though:
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?
Regards,
John
Falling You - exploring the beauty of voice and sound
http://www.fallingyou.com
_______________________________________________
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