Re: How to POST using CFSocket
Re: How to POST using CFSocket
- Subject: Re: How to POST using CFSocket
- From: Frederick Cheung <email@hidden>
- Date: Sun, 9 Nov 2003 12:02:50 +0000
On Sunday, Nov 9, 2003, at 06:00 Europe/London,
email@hidden wrote:
Date: Sat, 8 Nov 2003 02:03:14 -0800 (PST)
From: ali raza <email@hidden>
Subject: Re: How to POST using CFSocket
To: Douglas Davidson <email@hidden>
Cc: email@hidden
Douglas,
I think you are right. So what are your suggestions
that what API (other than URL Access) should i use to
POST to HTTPS and still be able to run on both 9.x and
OS X keeping in mind that i have a carbon based
application. Or if compatibility with both OSs is not
possible then atleast the APIs are carbon based and
able to run on OS X. My priority is to be able to run
on OS X. I cannot use CFNetwork since these are cocoa
and my application is carbon based.
Wrong, CFNetwork is available for Carbon applications too (and is the
preferred replacement for URL Access).
AFAIK, URL Access is the only Mac OS X/9 compatible API.
Fred
Thanks
Ali
--- Douglas Davidson <email@hidden> wrote:
On Nov 7, 2003, at 12:53 AM, ali raza wrote:
2) Is it possible to POST data to a secure (HTTPS)
URL
using CFSocket?
3)If i am successfully able to POST to an HTTPS
while
running on OS X, will i be able to run the same
code
without any change successfully on OS 9.x?
4)Where can i find sample code showing a POST to
HTTPS
using CFSocket?
You seem to be under some misconceptions. CFSocket
is a CFType that
wraps a BSD socket, in order to allow it to serve as
a CFRunLoop
source. This allows you to be notified in the run
loop when data is
available on the socket. Notice that nowhere in
that description is
there any mention of specific higher-level
protocols. For higher-level
protocols, you want CFNetwork, which relies on
CFSocket, not CFSocket
directly. Also notice that both BSD sockets and
CFRunLoops are
mentioned, neither of which are available on Mac OS
9, so you will not
be able to use either CFNetwork or CFSocket on Mac
OS 9.
Douglas Davidson
_______________________________________________
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.