在 cURL 中指定 AMFPHP 的内容类型
我正在使用 libcurl 创建到 amfphp 服务器的 http 连接。我是否必须将内容类型设置为任何特定格式?我注意到 PHP cURL 中有一个名为 AMFPHP_CONTENT_TYPE
的选项,但我在 C
中找不到相应的值。
I am using libcurl
to create an http connection to an amfphp
server. Do I have to set the content type to any specific format? I noticed there is a option called AMFPHP_CONTENT_TYPE
in PHP cURL but I couldn't find a corresponding value in C
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找到了。我必须将
Content-type: application/x-amf
添加到POST
标头。Found it. I have to add
Content-type: application/x-amf
to thePOST
header.