开发者

How to read a http response body when tyring to read http via tcp socket?

So I want to read http streams using flas开发者_运维知识库h tcp sockets. I do not really need the http header at all - all I need is body which contains flv. so how to read http response body into byte array using flash sockets?


Are sockets a must-have requirement?

You could use as3httpclientlib instead?

It throws a different event for headers and data (onStatus, onData), so you wouldn't need to re-invent the wheel.

Alternatively, if it doesn't work, the source code is available, might help for what you need.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜