$link = "http://www.mogem.ru/poisk-okved2.php";
$curl = curl_init();
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, array('kod'=> $okved));
curl_setopt($curl, CURLOPT_URL, $link);
$out = curl_exec($curl);
curl_close($curl);
return json_decode($out,TRUE);