QNetworkReply Error 299
-
Hi, I'm trying to request a page using QNetworkAccessManager, if I use wget or type in a browser it works, but I get QNetworkReply Error 299.
@
..
netAccessMan = new QNetworkAccessManager(this);
connect(netAccessMan, SIGNAL(finished(QNetworkReply*)), this, SLOT(downloadFinished(QNetworkReply*)));
QUrl url = QUrl::fromEncoded("http://www.consultas.curp.gob.mx/CurpSP/curp1.do?strPrimerApellido=PRUEBA&strSegundoAplido=PRUEBA&strNombre=PRUEBA&strdia=16&strmes=11&stranio=1999&sSexoA=H&sEntidadA=VZ&rdbBD=myoracle&strTipo=A&entfija=DF&depfija=11024",QUrl::TolerantMode);
QNetworkReply *reply = netAccessMan->get(request);
..void WMain::downloadFinished(QNetworkReply *reply){
if (reply->error() != QNetworkReply::NoError) {
qDebug() << reply->error();
reply->deleteLater();
}else{
..
}
}
@I always get 299 as output, I've try downloading something else and it works, for example if I use
@
QUrl url = QUrl::fromEncoded("http://www.google.com.mx/search?q=QNetworkRequest+&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:unofficial&client=firefox-nightly#hl=es-419&client=firefox-nightly&hs=Jng&rls=org.mozilla:en-US:unofficial&sclient=psy-ab&q=QNetworkRequest+error+299&oq=QNetworkRequest+error+299&aq=f&aqi=&aql=&gs_sm=3&gs_upl=3534l5985l0l6093l12l11l1l0l0l0l244l1499l0.9.1l11l0&gs_l=serp.3...3534l5985l0l6093l12l11l1l0l0l0l244l1499l0j9j1l11l0&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.,cf.osb&fp=a643838daed5acde&biw=1248&bih=853",QUrl::TolerantMode);
@I've looked about error 299 but I can't see something wrong with the url..