• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Send TCP Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Send TCP Data
      • From: David Blanton <email@hidden>
References: 
 >Send TCP Data (From: David Blanton <email@hidden>)

  • Prev by Date: Debugging screensavers
  • Next by Date: Re: Debugging screensavers
  • Previous by thread: Re: Send TCP Data
  • Next by thread: Re: Send TCP Data
  • Index(es):
    • Date
    • Thread