Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. qnetworkrequest
    Log in to post

    • UNSOLVED Login and save session to navigate to other pages
      General and Desktop • qnetworkaccessm qnetworkreply qnetworkrequest qnetworkcookiej qurlquery • • najihahnizar  

      1
      0
      Votes
      1
      Posts
      35
      Views

      No one has replied

    • UNSOLVED Can't Successfully Login With QNetworkReply* (REST API)
      General and Desktop • qnetworkrequest login qt5.14.2 post restful api • • surferbrain  

      12
      0
      Votes
      12
      Posts
      165
      Views

      Not in the past few days, IIRC, OpenSSL 1.1 support started with 5.10 and the ore-built package switched to it during the 5.12 release cycle.
    • SOLVED When qnetworkreply is delete after request from QNetworkAccessManager::get(QNetworkRequest request (url))?
      General and Desktop • qnetworkaccessm qnetworkreply qnetworkrequest qnetwork • • Yash001  

      2
      0
      Votes
      2
      Posts
      60
      Views

      Hi, Usually you don't store the reply but rather connect its signals to lambdas, do the processing there and then call deleteLater on it once you are done.
    • UNSOLVED QSocketNotifier Exception After Deletion of QNetworkAccessManager Object
      General and Desktop • qnetworkaccessm qnetworkreply qnetworkrequest qsocketnotifier • • Zach M  

      10
      0
      Votes
      10
      Posts
      338
      Views

      Ahh sorry I thought an strace would help. It might take me a bit to get an actual stack trace as I'd have to set up my build environment with debugging symbols. The reason I was recreating QNetworkAccessManager is because I was under the impression that I needed to do so when I lost network access (m_mgr->networkAccessible() != QNetworkAccessManager::Accessible). That's what a user said on this stack overflow post. Is that incorrect? If I could just used something like setNetworkAccessible() that would avoid this whole mess. I've tested out removing the QNAM deletion and the exception does not occur. I guess I am sort of confused in general about what QNetworkAccessManager::NetworkAccessibility even represents? It's not going to alter the actual network state, NetworkManager handles that
    • SOLVED uploadProgress signal emitted 0/0 with long delay
      General and Desktop • qnetworkaccessm qnetworkreply qnetworkrequest upload • • yasen  

      7
      0
      Votes
      7
      Posts
      483
      Views

      Tested on another server, everything works fine
    • UNSOLVED Trouble posting to a resful API
      General and Desktop • qnetworkrequest qmultipart qhttppart • • Knox  

      4
      0
      Votes
      4
      Posts
      325
      Views

      Another thing I notice is that QNetworkAccessManager manager is created just before the post request. This indicates to me that you are not handling any signal like finished(..). So how to you know that response has come back ?
    • SOLVED How to get a Json value from an api and display it in a GUI
      General and Desktop • c++ json qnetworkrequest qurl api • • hoonara  

      8
      0
      Votes
      8
      Posts
      1671
      Views

      @Lodhi-bhkr Sorry, but this is not a question. What did you try? What problems do you have? Please ask more specific questions. Looks like you asked here already: https://forum.qt.io/topic/120439/qt-code-to-send-data-on-postman-http-post-request
    • UNSOLVED Upload large files HTTP request, without increasing the application memory.
      General and Desktop • c++ desktop http qnetworkrequest upload • • Tusharh  

      9
      0
      Votes
      9
      Posts
      4533
      Views

      @raven-worx Yes, this is the code. I also did separate new code QNAM()->PUT(request,QFile*) & QNAM()->POST(request,QFile*) on my QT 5.4.1 setup. Everytime after executing the request application memory goes on increasing till it is equivalent to given file size(here I used 1GB file & memory increased by 1GB).
    • UNSOLVED Reading Data from QNetworkReply Returns Nothing
      General and Desktop • qtcpserver qnetworkrequest qnetreply • • praveen0991kr  

      8
      0
      Votes
      8
      Posts
      4105
      Views

      @praveen0991kr damn...thats the drawback of using QNetworkAccessManager with a plain tcp socket. Your response also has to be a HTTP response in order to make QNetworkReply work properly. E.g. HTTP/1.0 200 OK Date: Fri, 01 Jan 1970 23:59:59 GMT Content-Type: text/html Content-Length: 1259 <CONTENT-with-a-size-of-1259-bytes> So the most important is the first line that says everything was ok. Which is reflected by QNetworkReply's error. I would take this as an minimal example for an response, don't know for sure which headers are mandatory. Note the empty line between the header and body section! And each line should end with \r\n See RFC-2616 for more details.
    • UNSOLVED How to send QString to server in Qt 5.6?
      QtWebEngine • network qnetworkaccessm qnetworkreply qnetworkrequest • • d1.psy  

      7
      0
      Votes
      7
      Posts
      1991
      Views

      @d1.psy so you want the cookies from the requests you already made with QtWebEngine? If so take a look at QWebEngineCookieStore (see it's signals) and "sync" the cookies into your QNAM.
    • SOLVED can't get JSON file from QNetworkReply
      General and Desktop • qnetworkaccessm json qwebengineview qnetworkrequest qnetreply • • nazimGT  

      2
      0
      Votes
      2
      Posts
      3565
      Views

      resolved !! i've chenged m_pNetworkAccessManager->get(request); by request.setRawHeader("Content-Type", "application/x-www-form-urlencoded"); QByteArray par=""; m_pNetworkAccessManager->post(request,par);
    • UNSOLVED Memory leak in QNetworkProxy (should i post on bugtracker?)
      General and Desktop • qnetworkaccessm memory leak qnetworkreply qnetworkrequest qnetworkpoxy • • Vlad_Savelyev  

      3
      0
      Votes
      3
      Posts
      1002
      Views

      sure i will reply with the project code
    • UNSOLVED not able to download file from URL
      General and Desktop • network file qnetworkrequest • • Qjay  

      4
      0
      Votes
      4
      Posts
      1146
      Views

      QNetworkRequest req(url); reply=qnam.get(req); QObject::connect(reply,SIGNAL(finished()),this,SLOT(slotFinished()));
    • UNSOLVED HTTP response time with QNetworkAccessManager is more when compared to Dlib and Libcurl
      General and Desktop • qnetworkaccessm qnetworkreply qnetworkrequest qurl • • ksranjith786  

      10
      0
      Votes
      10
      Posts
      3479
      Views

      @ksranjith786 said: Could you please provide guidelines or code snippet to use QNetworkAccessManager using multi threaded env. No, I can't, sorry. Not that I don't want to, but I don't know of any way you can control the number of threads QNetworkAccessManager uses internally (I think it's hardcoded). If I were to do multithreading with NAM I'd do it like you - thread the reply's processing. Unfortunately this bears no weight on the HTTP response time. On a related note, I would always prefer to use TCP/IP directly, as it provides much more fine-grained control of what's happening (including threading). The downside of that approach however, is that it'd require implementing the HTTP protocol by hand. Perhaps, as @p3c0 suggested, you could try to ask the question on the mailing list were you might get responses from the actual developers of the module. Kind regards.
    • QNetworkAccessManager - first GET very slow
      General and Desktop • network qnetworkaccessm http qnetworkrequest get • • Aerius  

      15
      0
      Votes
      15
      Posts
      7717
      Views

      @djee In My Way connectToHost To Http Server Not Working, So I Call QSslConfiguration::defaultConfiguration(); Instead.
    • SOLVED QNetworkManager : resend qnetworkrequest before end make it crash
      Mobile and Embedded • qnetworkrequest qeventloop • • MrDiv  

      3
      0
      Votes
      3
      Posts
      1054
      Views

      Hi and welcome to devnet, That's because you are calling exec on _eventLoop twice. You should rather use a local QEventLoop or not allow the query to start if already in progress.
    • SOLVED QNetworkReply takes long time to emit finished signal
      General and Desktop • qt5 qnetworkreply qnetworkrequest header delay • • Tusharh  

      7
      0
      Votes
      7
      Posts
      3283
      Views

      @SGaist Hi, I resolved the issue. I was actually firing sendCustomRequest() api as I was using a specific url query in request which was needed in to fire via HEAD method. Before firing sendCustomRequest() api I was also creating & resetting my ssl configuration. So, instead I directly now use the head() api to fire my HEAD request. Now,finished signal by reply gets fired instantaneously & I am able to read my specific header value in response in no time. Thanks for your time..!! :)
    • [SOLVED] Upload Files with PUT into WS
      General and Desktop • qnetworkreply qnetworkrequest • • GGAllin  

      6
      0
      Votes
      6
      Posts
      1251
      Views

      You're welcome ! Since you have it working now, please update the thread title prepending [solved] so other forums users may know a solution has been found :)
    • connect to rest service with qt and error SSL handshake failed
      General and Desktop • qnetworkrequest ssl failed • • vagelis  

      10
      0
      Votes
      10
      Posts
      8294
      Views

      Hi, this post might help you, basically it says you should check you've copied also the Qt4Core.dll, Qt4Gui.dll etc. to your bin directory.
    • Set ssl configuration with certificates of QNetworkRequest does not work
      General and Desktop • ssl qnetworkrequest certificate • • RogerLai  

      1
      0
      Votes
      1
      Posts
      1972
      Views

      No one has replied