Re: Send TCP Data
Re: Send TCP Data
- Subject: Re: Send TCP Data
- From: MacInsight <email@hidden>
- Date: Tue, 25 Mar 2003 20:28:57 +0100
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
P.S.: and no, this isn't a very "Cocoa-like" approach ;-)
_______________________________________________
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.