Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

Qt 4.8.2 QWebView getting Content-type missing in HTTP POST, defaulting to application/octet-stream

$
0
0
i have popup window that is opened from web page ( its paypal popup) i capture it and then i try to fix this error as the document suggesting here Your text to link here… [qt-project.org] but still im getting this error here is my QWebView class    class WebView : public QWebView     {         Q_OBJECT     public:         WebView()         {             connect( this->page()->networkAccessManager(),                  SIGNAL(sslErrors(QNetworkReply*, const QList<QSslError> & )),                  this,                  SLOT(sslErrorHandler(QNetworkReply*, const QList<QSslError> & )));         }         private slots:         void sslErrorHandler( QNetworkReply *reply, const QList<QSslError> &errors)         {             qDebug() << "sslErrorHandler:";             foreach (QSslError err, errors)               qDebug() << "ssl error: " << err;                 reply->ignoreSslErrors();         }         protected:         QWebView *createWindow(QWebPage::WebWindowType type)         {             QWebView *webview = new QWebView;                     QUrl tmpUrl = webview->url();       QNetworkRequest request(tmpUrl);       //request.setHeader(QNetworkRequest::ContentTypeHeader,QVariant("application/x-www-form-urlencoded"));       request.setHeader(QNetworkRequest::ContentTypeHeader,"application/octet-stream");                   //webview->show();       webview->load(request,QNetworkAccessManager::PostOperation);             return webview;         }     }; what im doing wrong here ?

Viewing all articles
Browse latest Browse all 22112


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>