robbiehanson/CocoaAsyncSocket — Issue #25: Why SimpleHTTPClient  can't receive the Http body?
Author: xpisceo
Created: 2012-02-12 08:52:10+00:00
State: open

I want to use CocoaAsyncSocket to get some html from the server. There is a demo under GCD directory:SimpleHTTPClient,

I change a little as below:
[asyncSocket readDataWithTimeout:10 tag:1];
//[asyncSocket readDataToData:responseTerminatorData withTimeout:-1.0 tag:0];

But only receive the Http response header, can't receive the Http body, I use the BSD Socket directly, and can get the response header and body successfully.

Hope give me Tech. support.

Thanks

Best regards,

Haven Tang