how can i send a HTTP GET request use Qt?
Unsolved
General and Desktop
-
how can i send a HTTP GET request use Qt?
boost::asio::streambuf request; std::ostream request_stream(&request); request_stream << "GET " << path_ << " HTTP/1.1\r\n"; request_stream << "Host: " << server_ << ":" << port_ << "\r\n"; request_stream << "Accept: */*\r\n"; request_stream << "Connection: close\r\n\r\n";
-
@opengpu basically networking in Qt centers around classes QNetworkAccessManager, QNetworkRequest and QNetworkReply
Please check the example suggested by @koahnig since it has mostly everything to grab a very good idea of those classes working together...