$client = new Client();
$url = 'api-url';
$request = $client->post($url, [
'headers' => [ 'Content-Type' => 'application/json' ],
'json' => ['token' => 'foo']
]);
return $request;
我也得到502 Bad Gateway
和資源解釋爲文檔,但與MIME類型application/JSONUzing狂飲發送POST請求qith JSON
我需要做一些JSON POST請求轉移。如何在Guzzle和Laravel中做到這一點?
@KiraArik其中狂飲的版本,您使用的? –
這工作!非常感謝!!! – Kira