TODO changes
This commit is contained in:
25
ofd/ofd.cpp
25
ofd/ofd.cpp
@@ -52,11 +52,28 @@ 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{to_utf8(module.get_url())},
|
||||
cpr::Parameters{{"fn", fn}, {"fd", fd}, {"fp", fp}});
|
||||
// curl 'https://ofd.beeline.ru/api/ofdcheck/checkf?fn=7281440701327430&fp=2807139546&fd=25051&format=4' \
|
||||
-H 'Accept: application/json, text/plain, */*' \
|
||||
-H 'Accept-Language: en-US,en;q=0.9,eo;q=0.8,ru;q=0.7' \
|
||||
-H 'Authorization: bearer null' \
|
||||
-H 'Connection: keep-alive' \
|
||||
-H 'Content-Type: application/json' \
|
||||
-H 'DNT: 1' \
|
||||
-H 'Referer: https://ofd.beeline.ru/check-order?fn=7281440701327430&fp=2807139546&fd=25051' \
|
||||
-H 'Sec-Fetch-Dest: empty' \
|
||||
-H 'Sec-Fetch-Mode: cors' \
|
||||
-H 'Sec-Fetch-Site: same-origin' \
|
||||
-H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36' \
|
||||
-H 'sec-ch-ua: "Chromium";v="127", "Not)A;Brand";v="99"' \
|
||||
-H 'sec-ch-ua-mobile: ?0' \
|
||||
-H 'sec-ch-ua-platform: "Linux"'
|
||||
|
||||
std::cout << r.text << std::endl;
|
||||
// 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user