I'm calling QWebFrame::evaluateJavaScript in one place in my code and it has no effect. However, if I replace this call with the setTimer(0) call and will call the original function when this timer times out it works. How do I know if it works or not? The JavaScript code which is evaluated in my case calls one JavaScript function which i...
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 credentials in base64 through the header. Maybe I can do this with QNAM by setting header in QNetowrkRequest. But I failed to find a way.
In q...
Hey everyone,
I'm facing some trouble when using the class QNetworkAccessManager.
I use it to download a simple file from an url like "http://www.foo.com/bar/foobar.txt".
When I start a download I use :
m_pNetworkReply = m_pNetworkAccessManager->get(QNetworkRequest(m_CurrentFileToDownload));
Then I connect a few slots to receive, f...
Hi
Is there any way to replace QSslSocket used by QNetworkAccessManager with my own implementation?
I was really looking forward to use WebKit!!
I'm working on attaching PKCS11 implementation to our Qt based software.
So far the only way I found is to use QHttp - but doc says that this class should not be used..
I find QNetworkAcces...
I am attempting to use the QT QNetworkAccessManager class to manage some downloads in a multi-threaded C++/QT application.
On worker thread (edit: the thread is seperate for other reasons aside from doing the download), I'm would like to do a get to an external server and be ready to receive the results with the code:
...
m_nam = new ...
I have a simple class Networking with a:
private:
QNetworkAccessManager *httpclient;
I create an object in the constructor and connect signal and slot:
httpclient = new QNetworkAccessManager(this);
connect(httpclient, SIGNAL(finished(QNetworkReply*)), this, SLOT(httpRequestFinished(QNetworkReply*)));
Now I am going to call th...
I wrote the server site call in Qt, but i haven't get the server response for every server invoking. I have to use the server reply to continue the program flow.
The request is correctly reached to server and server do reply.The server is also on my machine.
Here is the code how i make the server site call;
QNetworkAccessManage...
I'm trying to use Qt to download the html code from the following url:
http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=nucleotide&cmd=search&term=AB100362
this url will re-direct to
www.ncbi.nlm.nih.gov/nuccore/27884304
I try to do it by following way, but I cannot get anything.
it works for some webpage such as www.google....
I try to get this following url using the downloadURL function as follows:
http://www.ncbi.nlm.nih.gov/nuccore/27884304
But the data is not as what we can see through the browser, now I know it's because some correct information (such as browser type) is needed. How can I know what kind of information I need to set, and how can I set ...
I would like to test an asynchronous request to a webserver. For that purpose I'm creating a simple unittest to quickly try a few lines of code:
void AsynchronousCall::testGet()
{
QNetworkAccessManager *nam = new QNetworkAccessManager(this);
QUrl url("http://myownhttpserver.org");
QNetworkRequest req(url);
this->conn...
I am new to QT(jambi). I have a very simple QTJambi (4.5.2) app. I am trying to figure out why this will not work (DoResponseReady never called) within a thread. Switch the static variable between threaded=true/false to reproduce.
import com.trolltech.qt.core.QByteArray;
import com.trolltech.qt.core.QUrl;
import com.trolltech.qt.gui.QA...
In Qt I need to connect and check for updates on several servers and for this I'm using QNetworkAccessManager. The problem is that I don't want to connect to the next url until the current request has replied and is finished. My first idea was to use a loop like below, but then I have the problem with that I don't want to connect to the ...
I'm having some trouble with a Qt application; specifically with the QNetworkAccessManager class. I'm attempting to perform a simple HTTP upload of a binary file using the post() method of the QNetworkAccessManager. The documentation states that I can give a pointer to a QIODevice to post(), and that the class will transmit the data fo...
Hi All,
I'm having trouble accessing the content of QNetworkReply objects. Content appears to be empty or zero. According to the docs (translating from c++ to java) I think I've got this set up correctly, but to no avail. Additionally an "Unknown error" is being reported.
Any ideas much appreciated. Code:
public class Test extends QOb...
My application mostly works. I'm using QNetworkAccessManager to send a screencapture to a remote FTP server.
If during the middle of the transfer, I unplug my laptop from the internet, the transfer stops. Duh. Of course, it must.
But my problem is that it does NOT send an error anywhere that I can find. And when I reconnect the int...
For many reasons i need to download file by piece of 1024 byte.
I find nothing in QnetworkAccessManager.
I can not use the "header technic" because my server don't support it.
I call header technic, the tecnic who send stuff like "Content-Range: bytes 21010-47000/47022" in the header of http request
...
I'm using the following piece of code to make HTTPS requests with a server.
QNetworkRequest request;
//request.setSslConfiguration(QSslConfiguration::defaultConfiguration());
request.setUrl(QUrl("https://www.someurl.com/"));
QNetworkReply *reply = manager->get(request);
Everything seems to be working with my test server, but I would...
Hi,
I have created my own HTTP class that utilizes QNAM and provides means for sending HTTP requests. It uses QEventLoop for synchronization and QTimer for timeouts.
I'm facing few problems with my solution. On certain Symbian platforms my QTimer signals timeout too fast (e.g. like after 1 sec when timeout is 30 secs). This happends us...
I have an Qt application for symbian that receives gps data, stores it into a database and tries to post it to a server. First two steps work fine but continuous posting either crashes my application or kills my internet connection.
I have modified my application for debugging purposes so it only does post data to a server in every 10th...
Below is a small QtJambi code to download contents from a webpage.
public void loadDone()
{
QNetworkAccessManager nm=new QNetworkAccessManager();
nm.finished.connect(this,"done(QNetworkReply)");
nm.get(new QNetworkRequest(new QUrl("http://www.bing.com")));
}
public void done(QNetworkReply reply)
{
QByteArray ba=reply.re...