mirror of
https://github.com/QuasarApp/qca.git
synced 2025-04-29 04:54:31 +00:00
15 lines
299 B
C++
15 lines
299 B
C++
|
#include "tlssocket.h"
|
||
|
|
||
|
int main(int argc, char **argv)
|
||
|
{
|
||
|
QCoreApplication qapp(argc, argv);
|
||
|
|
||
|
TLSSocket socket;
|
||
|
socket.connectToHostEncrypted("www.paypal.com", 443);
|
||
|
socket.write("GET / HTTP/1.0\r\n\r\n");
|
||
|
while(socket.waitForReadyRead())
|
||
|
printf("%s", socket.readAll().data());
|
||
|
|
||
|
return 0;
|
||
|
}
|