Curl php instagram api

Curl php instagram api,php,curl,instagram,Php,Curl,Instagram,我尝试对instagram api执行请求,但收到502错误 POST /v1/media/3_3/likes?access_token=qwerty HTTP/1.1 Host: api.instagram.com Accept: */* Content-Length: 0 Content-Type: application/x-www-form-urlencoded HTTP/1.1 502 BAD_GATEWAY Content-Length: 0 Connection: keep-al

我尝试对instagram api执行请求,但收到502错误

POST /v1/media/3_3/likes?access_token=qwerty HTTP/1.1
Host: api.instagram.com
Accept: */*
Content-Length: 0
Content-Type: application/x-www-form-urlencoded

HTTP/1.1 502 BAD_GATEWAY
Content-Length: 0
Connection: keep-alive
但当我提出同样的要求时,我得到了正确的答案。为什么?
我从cUrl php发出请求,并在其他人的请求上得到正确的答案。(如get media)。

您能展示一些代码吗?@pekka我使用这个类来进行请求