私は次のURLを持っています
http://www.davesinclairstpeters.com/auto2_inventorylist?i=37647&c=12452&npg=1&ns=50&echo=2
curl を使用してこの URL のコンテンツを取得したいのですが、このリクエストを行うたびに、必要なパラメーターが渡されていないため、エラーが表示されます。
以下は私のコードです
$ch = curl_init(); // CURL を開始
curl_setopt($ch, CURLOPT_URL, $json_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPGET, true);
curl_setopt($ch, CURLOPT_FRESH_CONNECT, true);
$response = curl_exec($ch);