Vote Dein Lied

"5f843cd15b039561278b456b", 'product_id' => "4549480644721", 'product_name' => "Peter der Fuchs" ]; // Creating the request headers, important to use application/x-www-form-urlencoded as Content-type, // Also remember that the request method is HTTP POST, and that the request can be done on HTTPS and on HTTP. $options = [ 'http' => [ 'protocol_version' => 1.1, 'header' => [ 'Content-type: application/x-www-form-urlencoded', 'Connection: close', ], 'method' => 'POST', 'request_fulluri' => true, 'content' => http_build_query($data) ] ]; $context = stream_context_create($options); $result = file_get_contents($url, false, $context); // Parsing the response $response = @json_decode($result, true); echo isset($response['widget']) ? $response['widget'] : ''; ?>