Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QNetworkReply Error 299

QNetworkReply Error 299

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 9.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Iktwo
    wrote on last edited by
    #1

    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..

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dangelog
      wrote on last edited by
      #2

      Check that the QUrl is actually valid. Also, you might want to use a network sniffer to see eventual differences in the traffic with wget or a browser, and QNAM.

      Software Engineer
      KDAB (UK) Ltd., a KDAB Group company

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved