开发者

Specifying content type for AMFPHP in cURL

开发者 https://www.devze.com 2023-01-27 05:01 出处:网络
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

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 correspond开发者_如何学运维ing value in C.


Found it. I have to add Content-type: application/x-amf to the POST header.

0

精彩评论

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