So I want to read http streams using flash 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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.