so now by pass & user are 3 request!
and must switch if user & pass ist set.... or only a simple get ....
{
if (responseHeader.statusCode() != 200) {
tr("Download failed message: %1. \nRemote file %2 not respond!")
.arg(responseHeader.reasonPhrase() , url ));
httpRequestAborted = true;
http->abort();
stopButton->setEnabled(false);
emit ready_action();
return;
}
}
void Gui_Wget::readResponseHeader(const QHttpResponseHeader &responseHeader)
{
if (responseHeader.statusCode() != 200) {
QMessageBox::information(this, tr("HTTP"),
tr("Download failed message: %1. \nRemote file %2 not respond!")
.arg(responseHeader.reasonPhrase() , url ));
httpRequestAborted = true;
http->abort();
stopButton->setEnabled(false);
emit ready_action();
return;
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks