getting rid of CPR
This commit is contained in:
16
ofd/ofd.cpp
16
ofd/ofd.cpp
@@ -1,7 +1,6 @@
|
||||
#include "ofd.h"
|
||||
#include "../settings.h"
|
||||
#include "../utils/utils.h"
|
||||
#include <cpr/cpr.h>
|
||||
#include <filesystem>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
@@ -68,12 +67,13 @@ std::string OFD::get_check_data(std::string fn, std::string fd,
|
||||
-H 'sec-ch-ua-mobile: ?0' \
|
||||
-H 'sec-ch-ua-platform: "Linux"'
|
||||
|
||||
// cpr::Response r = cpr::Get(cpr::Url{"https://httpbin.org/get"});
|
||||
std::cout << fn << " " << fd << " " << fp << std::endl;
|
||||
cpr::Response r =
|
||||
//to_utf8(module.get_url())
|
||||
cpr::Get(cpr::Url{"https://ofd.beeline.ru/api/ofdcheck/checkf"},
|
||||
cpr::Parameters{{"fn", fn}, {"fd", fd}, {"fp", fp}, {"format", "4"}});
|
||||
// // cpr::Response r = cpr::Get(cpr::Url{"https://httpbin.org/get"});
|
||||
// std::cout << fn << " " << fd << " " << fp << std::endl;
|
||||
// cpr::Response r =
|
||||
// //to_utf8(module.get_url())
|
||||
// cpr::Get(cpr::Url{"https://ofd.beeline.ru/api/ofdcheck/checkf"},
|
||||
// cpr::Parameters{{"fn", fn}, {"fd", fd}, {"fp", fp}, {"format", "4"}});
|
||||
|
||||
return r.text;
|
||||
// return r.text;
|
||||
return "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user