如何编码(序列化)和解码(反序列化)AMF数据包?

如何编码(序列化)和解码(反序列化)AMF数据包?

问题描述:

At the moment it seems I've tried every trick in the book trying to get this to work. I need some way of encoding AMF requests and then decoding the responses. At this point I don't care what language it's in, as long as it's doable and free (as in to me), however I would prefer PHP.

I don't know what other information is needed, but I'm happy to supply more info - just comment this!

Thanks.

EDIT: It seems the version of AMFPHP I was using was broken. Using a different version that I extracted from somewhere worked.

目前我似乎已经尝试过本书中的每一个技巧,试图让它发挥作用。 我需要一些编码AMF请求然后解码响应的方法。 在这一点上,我不在乎它是什么语言,只要它是可行的和免费的(就像我一样),但我更喜欢PHP。 p>

我不知道是什么 需要其他信息,但我很乐意提供更多信息 - 只需对此进行评论! p>

谢谢。 p>

编辑: 它似乎是版本 我正在使用的AMFPHP被打破了。 使用我从某处工作的不同版本。 p> div>

You can use amfphp for PHP side or from the zend framework or weborb for PHP who is also free

SabreAMF has a decoder. Check http://code.google.com/p/sabreamf/

Although this question is very old, but still if someone is searching like me. Checkout the answer over here