CFNetwork?
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