1
我有這個目前在PHP中,並想知道在Java中相當於什麼。如何在Java中執行等效的cURL/mimetype代碼?
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $vals[$index["CM:URL"][0]]["attributes"]["VALUE"]);
header("Content-type: " . $vals[$index["CM:RESOURCEOBJECT"][0]]["attributes"]["MIMETYPE"]);
$content = curl_exec($ch);
curl_close($ch);
謝謝!