[Solved] Ajax Unknown error
-
[edit]
In QtWebKit often occurs error "Unknown error" in Ajax requests of type POST
This problem does not occur in conventional browsers (like Google Chrome and Firefox).It would be possible to create a "DEBUG" all requests that occur within the "QWebView" to analyze the cause of the problem?
bq. Note: There is always occurring, but still quite frequently
-Is it a bug in QT?-
-What would be the best way around the problem?--I believe that it is not something simple to discover, would analyze the requests of QtWebKit (using QtWebKit itself) made by Ajax (not the console QWebInspector, I've tried this and did not help me)?-
-
I tested using local proxy, or the proxy processes the request by the site that I access and send back to my application back.
@ QNetworkProxy proxyClient;
proxyClient.setType(QNetworkProxy::Socks5Proxy);
proxyClient.setType(QNetworkProxy::HttpProxy);
proxyClient.setHostName("127.0.0.1");
proxyClient.setPort(8080);
QNetworkProxy::setApplicationProxy(proxyClient);@The error does not happen more when used proxy.
Therefore I believe to be a defect in the transmission of data (I mean a failure in QtWebKit).
What could I do to solve this problem?
-
i solved the problem:
http://stackoverflow.com/a/17915208/1518921