• 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
CFNetwork?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CFNetwork?


  • Subject: CFNetwork?
  • From: Béla Kiss <email@hidden>
  • Date: Wed, 26 Dec 2001 23:55:41 -0800

Has anybody been able to get the CFNetwork stuff to work? No matter what I
put in my request header, CFHTTPMessageIsHeaderComplete() keeps returning
false.

A sample HTTP request that doesn't work for me is:

GET / HTTP/1.1\r\n
Accept: text/html\r\n
User-Agent: Mozilla/4.0\r\n
Host: www.apple.com\r\n
Connection: close\r\n
\r\n

(FWIW, it serializes correctly using CFHTTPMessageCopySerializedMessage().)

If I then try to stream the request out as demonstrated in the
CFNetwork.pdf, CFReadStreamForHTTPRequest() seems to return a valid stream
and CFReadStreamOpen() returns true but
CFReadStreamCopyProperty(myReadStream, kCFStreamPropertyHTTPResponseHeader)
returns NULL.

Any pointers would be much appreciated.

Cheers,

Bila
--
Bila Kiss telno. 604.264.6113
Arborealis Research email. email@hidden
3322 W 36th Avenue
Vancouver, BC, CANADA V6N 2R9


  • Follow-Ups:
    • Re: CFNetwork?
      • From: "Jeff Galyan" <email@hidden>
    • Re: CFNetwork?
      • From: Dustin Mierau <email@hidden>
  • Prev by Date: RE: Stack size
  • Next by Date: Re: CFNetwork?
  • Previous by thread: Re: Stack size
  • Next by thread: Re: CFNetwork?
  • Index(es):
    • Date
    • Thread