CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 13:12:14 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=eca1402341431c79df1b355aede17c2cc34696039445365bc9a08adbcea01ca7a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22e_KQnDQkL1fY4j6_Ja3zRBgG7jokZmqu%22%3B%7D; HttpOnly; Path=/
cf-ray: 98ce9b9f59baaf3d-BLR
QString Token::obter_token(QString endereco_servidor, QJsonObject dados){ - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QString Token::obter_token(QString endereco_servidor, QJsonObject dados)
- {
- QUrl url = endereco_servidor;
- url.setPath("/cotacao/Api/login");
- qDebug() << "Key teste";
- QNetworkRequest request(url);
- request.setHeader(QNetworkRequest::ContentTypeHeader, QLatin1String("application/json"));
- QNetworkReply *reply = m_nam->post(request, QJsonDocument(dados).toJson());
- qDebug() << url;
- connect(reply, &QNetworkReply::finished, this, [this, reply] () {
- reply->deleteLater();
- // qDebug() << "todo conteúdo " << reply->readAll();
- const QJsonDocument doc = QJsonDocument::fromJson(reply->readAll());
- const QJsonObject obj = doc.object();
- if (obj.isEmpty()) {
- qCritical() << "Endereço do Servidor2 não encontrado";
- // return nullptr;
- }
- // qDebug() << obj["upload_data"]["full_path"];
- foreach (const QString &key, obj.keys()) {
- QJsonValue value = obj.value(key);
- // QJsonValue value = obj.value(key)["full_path"];
- if (value.isString()) {
- qDebug() << "Key =" << key << ", Value =" << value.toString();
- } else if (value.isDouble()) {
- qDebug() << "Key =" << key << ", Value =" << value.toInt();
- } else {
- qDebug() << "Key =" << key << ", Value =" << value;
- }
- if (value == "Expired token") {
- qDebug() << "Token expirado";
- qDebug() << "Token" << value.toString();
- // return nullptr;
- // break;
- }
- }
- });
- return nullptr;
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐⭐⭐GMAIL Logs (2FA disabled)⭐⭐
Java | 3 sec ago | 0.10 KB
-
⭐ Free Crypto Method ✅ NEVER SEEN BEFORE ⭐⭐⭐
JavaScript | 6 sec ago | 0.24 KB
-
⭐⭐⭐MAKE $500 IN 15 MIN⭐⭐
Java | 9 sec ago | 0.10 KB
-
⭐⭐⭐Exchange Exploit T 3⭐⭐
Java | 14 sec ago | 0.10 KB
-
✅⭐ Make huge profits on trading ✅ NEVER SEEN...
JavaScript | 15 sec ago | 0.24 KB
-
⭐⭐⭐Crypto Accounts⭐⭐
Java | 20 sec ago | 0.10 KB
-
⭐⭐⭐Exploit 500$ in 15 Minutes⭐⭐
Java | 25 sec ago | 0.10 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 25 sec ago | 0.24 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand