array( 'header' => array("Pragma: DFI", "User-Agent: ALL.Net"), 'method' => 'POST', 'content' => $compressed ) ); $context = stream_context_create($options); $result = file_get_contents('http://naominet.jp/sys/servlet/DownloadOrder', false, $context); if ($result === FALSE) { exit("error dl\n"); /* Handle error */ } //print($result); $response = gzuncompress(base64_decode($result)); print($response); print("\n"); ?>