From 5b471e715a96de85b9716a7bd2f3864a73acae8c Mon Sep 17 00:00:00 2001 From: Mr_Goldberg Date: Fri, 25 Oct 2019 18:33:56 -0400 Subject: [PATCH] Fix generate game infos https. --- generate_game_infos/generate_game_infos.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/generate_game_infos/generate_game_infos.cpp b/generate_game_infos/generate_game_infos.cpp index 7cbcaf3..430bdd0 100644 --- a/generate_game_infos/generate_game_infos.cpp +++ b/generate_game_infos/generate_game_infos.cpp @@ -266,7 +266,7 @@ static bool create_directory(std::string const& strPath) static void generate_achievements(CurlEasy &easy) { - std::string url = "http://api.steampowered.com/ISteamUserStats/GetSchemaForGame/v2/?key="; + std::string url = "https://api.steampowered.com/ISteamUserStats/GetSchemaForGame/v2/?key="; url += steam_apikey; url += "&appid="; url += app_id; @@ -352,7 +352,7 @@ static void generate_achievements(CurlEasy &easy) static void generate_items(CurlEasy& easy) { - std::string url = "http://api.steampowered.com/IInventoryService/GetItemDefMeta/v1?key="; + std::string url = "https://api.steampowered.com/IInventoryService/GetItemDefMeta/v1?key="; url += steam_apikey; url += "&appid="; url += app_id; @@ -365,7 +365,7 @@ static void generate_items(CurlEasy& easy) nlohmann::json json = nlohmann::json::parse(easy.get_answer()); std::string digest = json["response"]["digest"]; - url = "http://api.steampowered.com/IGameInventory/GetItemDefArchive/v0001?appid="; + url = "https://api.steampowered.com/IGameInventory/GetItemDefArchive/v0001?appid="; url += app_id; url += "&digest="; url += digest; @@ -448,6 +448,7 @@ int main() CurlEasy easy; if (easy.init()) { + easy.skip_verifypeer(); std::cout << "Enter the game appid: "; std::cin >> app_id; std::cout << "Enter your webapi key: ";