开发者

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

开发者 https://www.devze.com 2023-02-12 06:45 出处:网络
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 byt

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

精彩评论

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