Re: Send TCP Data
Re: Send TCP Data
- Subject: Re: Send TCP Data
- From: David Blanton <email@hidden>
- Date: Tue, 25 Mar 2003 13:33:53 -0700
On 3/25/03 12:28 PM, "MacInsight" <email@hidden> wrote:
>
Hi,
>
>
Am Montag, 24.03.03 um 18:55 Uhr schrieb David Blanton:
>
>
> I want to send an HTTP GET to a know host.
>
>
I do a POST request to a ServerApplet on a webserver, which in turn
>
returns data.
>
>
Therefor I'm using
>
>
CFHTTPMessageRef
>
>
and
>
>
CFReadStreamRef
>
>
to send and receive data with these calls:
>
>
CFHTTPMessageCreateRequest()
>
CFHTTPMessageSetHeaderFieldValue()
>
CFHTTPMessageSetBody()
>
CFReadStreamCreateForHTTPRequest()
>
CFReadStreamOpen()
>
>
Maybe you can go a similiar way, have a look at the docs and the
>
example (both on your harddisk, with installed DevTools):
>
>
<file:///Developer/Documentation/ReleaseNotes/CoreFoundation.html>
>
<file:///Developer/Examples/Networking/GET Example/GET Example.pbproj>
>
>
hth,
>
Dirk Stegemann
>
>If I'm not mistaken, NSSocketPort is for DO and not general TCP/IP.
>
>If you want to use ObjectiveC networking classes, then you need a third
>
>party framework, such as SmallSockets or OmniNetworking. Or, if you
>
>just need to do simple URL transactions, then you could use CURLHandle
>
>or OWF.
>
>Nick Zitzmann
Thank you Dirk and Nick. I will explore both options and let you know the
results. I am somewhat bothered that there is no Cocoa Class to do this.
David Blanton
"Cocoa FNG"
<PS who on the list can tell me what FNG means?>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.