阅读背景:

PHP cURL POST返回一个415不支持的媒体类型。

来源:互联网 

I've got a simple PHP script that sends an HTTP POST request via cURL, and expects a json string in response (would have loved to use an existing library like pecl_http/HTTPRequest for this, but can't). The call consistently fails with a 415 error - Unsupported Media Type. I think I'm not configuring cURL correctly, but after much searching, I can't find out what I'm doing wrong. Here's some code:I've got a simple PHP script that sends an HTTP




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: