CFNetwork HTTPS Sample Code
CFNetwork HTTPS Sample Code
- Subject: CFNetwork HTTPS Sample Code
- From: "Joe Pezzillo" <email@hidden>
- Date: Tue, 13 May 2003 17:45:34 -0600
Greetings!
This is my first post to the list, and I'm glad I found it!
I'm trying to build methods to do more complex GET and POST requests than
NSURL offers in my Cocoa app.
My plain HTTP versions seem to work just fine (including headers, basic
auth, autoredirects and body setting for posting), but I'm getting assorted
errors using the same functions for HTTPS.
Can someone please point me at functioning sample code for a CFNetwork HTTPS
implementation (yes, I've got the CFNetwork PDF and I've read CFHTTP, which
is how I created the existing code I've got working) so that I can try to
figure out what I'm doing wrong?
I've looked through the archives for this list and Cocoa-dev and found
mentions of using HTTPS in these functions, but generally the mentions are
of the nature "you can use either HTTP or HTTPS" without explaining any
details, and it's not working for me.
In particular, I'm getting errors from a domain that is not in CFStream.h
(domain 3, although I've also gotten kCFStreamErrorDomainHTTP), and I
haven't been able to find a solution for dealing with
kCFStreamErrorHTTPRedirectionLoop (I'm using auto-redirect), nor what causes
kCFStreamErrorHTTPParseFailure when the read stream opens properly, but
errors with negative bytes to read.
I'm using CFReadStream to do the serialization which works great for HTTP,
am I supposed to handle the serialization/deserialization myself when doing
HTTPS?
Thanks for any pointers anyone can provide!
Sincerely,
Joe Pezzillo
Boulder, Colorado, USA
<email@hidden>
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.