int main(int argc, char **argv) { QCoreApplication app(argc, argv);
QSslSocket socket; socket.connectToHostEncrypted("www.paypal.com", 443); socket.write("GET / HTTP/1.0\r\n\r\n"); while (socket.waitForReadyRead()) qDebug() << socket.readAll().data();
}
Источник http://labs.trolltech.com/
|