qnetworkaccessmanager Questions

4

Solved

I want to get the source (HTML) of a webpage, for example the homepage of StackOverflow. This is what I've coded so far: QNetworkAccessManager manager; QNetworkReply *response = manager.get(QNetw...
Pleasing asked 25/7, 2014 at 23:34

2

Solved

How do I setup a timeout when I do an http request? I have this code: { QNetworkRequest request; request.setUrl(QUrl("http://www.foo.com")); request.setRawHeader("User-Agent", USER_AGENT.toUt...
Striped asked 3/11, 2012 at 8:40

2

I have a huge problem and I actaully thought that I solved it. I have an application that uses the QNetworkAccessManager. This QNAM is located in a class. When I perform requests on this QNAM all o...
Gallipot asked 3/5, 2012 at 22:54

3

Solved

I am using Qt 4.6.3 and the following not-working code QStringList userInfo; QNetworkRequest netRequest(QUrl("http://api.stackoverflow.com/1.1/users/587532")); QNetworkReply *netReply = netman-&gt...
Mogador asked 30/3, 2011 at 12:11

2

Solved

I'm trying to send a POST request from Qt where the body is in JSON format. Firstly I'm asserting that the request works in curl: curl -i -H "Content-Type: application/json" -d '{"ke...
Hawser asked 7/2, 2020 at 5:29

4

I'm new to Qt and I would like to implement FTP and SFTP support for my software. As I googled I discovered that there doesn't exist a sftp library for Qt but it should be possible with QNetworkAcc...
Leonardoleoncavallo asked 20/7, 2011 at 6:58

3

Solved

I am trying to send a "PATCH" request to my firebase application.As far as I read QNetworkManager doesn't support "Patch" request. How can I send "PATCH" request ?
Precipitant asked 3/12, 2015 at 12:10

2

Solved

I have a MainWindow application I'm working on to learn C++ and Qt (C++ and QT 4.8). I want to do HTTP requests in different objects of my application, such as Dialogs/Wizard and in the MainWindow....
Unarm asked 3/7, 2012 at 15:1

1

I have my first Qt application in development. It's a desktop client for site messaging. Qt documentation says that i need to have only one instance of QNetworkAccessManager accross application. B...
Tsarina asked 5/9, 2017 at 13:55

1

I have a problem with using the QNetworkAccessManager in Qt 5.5 on android. Downloading a simple, small graphic file via http GET results in a lot of garbage collection calls and a lockup of the UI...
Seeseebeck asked 14/3, 2016 at 16:56

3

Solved

I was trying to perform basic authentication for Twitter from my Qt app. I use QNetworkAccessManager. But I couldn't find any help on this. But I found a program called qsoapmanager which passes c...
Huggermugger asked 3/10, 2009 at 5:2

3

Solved

I have a piece of code that worked in 4.8 but now I need to port it to Qt5 (beta2) This is what should happen: I want to post some data to a webserver the url should look like this "http://server/a...
Simulant asked 26/11, 2012 at 12:25

3

Solved

I am trying to save cookies that are produced by my app to disk location such as C:\Users\Username\AppData\Local\MyCompany\MyApp. I have implemented a webview and have pretty much finished coding m...
Attend asked 20/12, 2012 at 12:2

2

Solved

I have a webviewer and only want it to only be able to access our webapps, to achieve this I have placed a php header which I look for in my Qt App. This works fine but with one exception and that'...
Kerf asked 11/2, 2013 at 9:33

1

Solved

I have Qt 5.4.0 on Windows 8.1 and Qt 5.4.2 on ArchLinux latest and get exactly the same result. I have web-site which requires client SSL certificate. Server seems to be configured properly since...
Veradis asked 25/6, 2015 at 1:12

2

I'm trying to maintain a persistent connection between client and Remote server using Qt. My sever side is fine. I'm doing my client side in Qt. Here I will be using QNetworkAccessManager for reque...
Evante asked 20/4, 2015 at 10:41

1

Solved

I've been having some issues trying to upload files to a server using QNetworkRequest. I've been using this link (http://qt-project.org/forums/viewthread/11361) mostly as a template, but am still g...
Corry asked 24/5, 2013 at 13:1

3

Solved

I noticed that the QHttp class is no longer available in Qt5 and I keep getting an error message which says that I need to use the QNetworkAccessManager to do this. Is there a way to access this c...
Antibaryon asked 3/10, 2014 at 13:54

3

Solved

How to tell QWebPage not to load specific type of resources like js, css or png?
Piscine asked 1/1, 2011 at 18:54

1

Solved

I am using QNetworkAccessManager to POST, PUT, and GET data from the server. The code looks like below. QNetworkAccessManager *manager = new QNetworkAccessManager(this); connect(manager, SIGNAL...
Almost asked 4/2, 2014 at 9:51

4

Solved

I'm trying to use QNetworkAccessManager to upload http multiparts to a dedicated server. The multipart consists of a JSON part describing the data being uploaded. The data is read from a serial Q...
Exemplificative asked 27/2, 2013 at 10:24

1

Solved

When dealing with QNetworkReply, it is prescribed to use timers to abort the connection. Here is my current code: void ImageDownloader::download(QString imgUrl){ this->timeoutTimer = new QTi...
Castrate asked 17/8, 2012 at 8:45

3

Im trying to create an uploader that will create new threads and in every thread I have a QNetworkAccessManager. All the uploader threads have a reference to a shared list and will split it by usin...
Hoboken asked 27/2, 2012 at 0:25

3

Solved

Have an application where I have QOBJects which all contain an QNetworkAccessManager. I am aware of that it's suggested to only have on per application but since I'm making a lot more that 6 calls ...
Caroche asked 17/4, 2012 at 2:46

3

Solved

Well i have one file on my server and other on my computer. What i want to do is a simple updater that checks if the file of my computer is equal to the one uploaded in the server. (If it's equal t...
Costplus asked 15/12, 2011 at 8:18

© 2022 - 2024 — McMap. All rights reserved.