forked from ondra/colnod-connector
fix wrong endlines
This commit is contained in:
parent
94edc63f5e
commit
b6c2317757
@ -162,8 +162,13 @@ void UnitTest::debugConnection()
|
||||
|
||||
QString token = testAccess->getToken();
|
||||
token = token + ":";*/
|
||||
tmp = "POST /SubjectManager/getSubjects\r\nHTTP/1.1 Host: 192.168.1.3:8443\r\nAuthorization: Basic " + tkn.toUtf8().toBase64() + "\r\nUser-Agent: curl/7.65.3\r\nAccept: */*)";
|
||||
qDebug() << tmp.toUtf8();
|
||||
tmp = "POST /SubjectManager/getSubjects HTTP/1.1\r\nHost: 192.168.1.3:8443\r\nAuthorization: Basic " + tkn.toUtf8().toBase64() + "\r\nUser-Agent: curl/7.65.3\r\nAccept: */*";
|
||||
QFile file("output1234.txt");
|
||||
file.open(QIODevice::ReadWrite);
|
||||
QTextStream st(&file);
|
||||
st << tmp;
|
||||
file.close();
|
||||
qDebug().noquote() << tmp.toUtf8();
|
||||
ssl.write(tmp.toUtf8());
|
||||
while (ssl.waitForReadyRead())
|
||||
qDebug() << ssl.readAll().data();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user