void MainWindow::on_WowButton_clicked()
{
http->setHost("pastebin.ca");
http->get("/raw/2072840");
QString paste(http->readAll());
ui->textEdit->setText(paste);
}
Now, I want to set user agent for the get request. please tell the proper way to set a user agent .
Thanks !
QHttp is obsolete and depricated. You are required to use QNetworkAccessManager instead.
If you still want to use QHttp