From a8d0530781637e955ef129a2adbb662ce7d67527 Mon Sep 17 00:00:00 2001 From: SEGA CORPORATION <> Date: Tue, 12 Jul 2022 22:54:47 -0400 Subject: [PATCH] add downloadorder cli --- tools/Download/DownloadOrder_V1_CLI.php | 56 +++++++++++++++++++ ...r_V1.php => DownloadOrder_V1_original.php} | 0 2 files changed, 56 insertions(+) create mode 100755 tools/Download/DownloadOrder_V1_CLI.php rename tools/Download/{DownloadOrder_V1.php => DownloadOrder_V1_original.php} (100%) diff --git a/tools/Download/DownloadOrder_V1_CLI.php b/tools/Download/DownloadOrder_V1_CLI.php new file mode 100755 index 0000000..7bce2e8 --- /dev/null +++ b/tools/Download/DownloadOrder_V1_CLI.php @@ -0,0 +1,56 @@ + 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"); + +?> diff --git a/tools/Download/DownloadOrder_V1.php b/tools/Download/DownloadOrder_V1_original.php similarity index 100% rename from tools/Download/DownloadOrder_V1.php rename to tools/Download/DownloadOrder_V1_original.php