Re: Does CFNetwork proccess http response code 101 internel?
Re: Does CFNetwork proccess http response code 101 internel?
- Subject: Re: Does CFNetwork proccess http response code 101 internel?
- From: Jan Deng <email@hidden>
- Date: Sat, 25 Apr 2009 17:20:06 +0800
Hi Jens,
Thanks for your reply.
The protocol is http. 101 is defined in RFC, it means switch protocol.
I used CFReadStreamOpen to connect to the server.
And in 4 is
kCFStreamErrorDomainHTTP, but -4 is not defined in CFHTTPStream.h
2009/4/24 Jens Alfke
<email@hidden>
On Apr 23, 2009, at 11:55 PM, Jan Deng wrote:
I used CFReadStream to send a request to a server witch is supposed to send back a response status code 101.
What protocol is this? I don't recognize 101 as an HTTP status code. And what function are you using to connect to the server?
But I didn't get the response. CFNetwork create a error whose domain is 4 and code is -4.
And I used wireshark to catch the packs. The server did send a 101 back.
Something went wrong with the socket, if it's returning an error directly. You'll need to look up which of the kCFStreamErrorDomainXXX constants has value 4.
—Jens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden