So, I'm using a QNetworkRequest to get request from my website.
This is the code:
Qt Code:
QNetworkRequest WebContact::getRequest() { QNetworkRequest request; request.setHeader(QNetworkRequest::ContentTypeHeader,QVariant("application/x-www-form-urlencoded")); return request; }To copy to clipboard, switch view to plain text mode
When running on Qt Creator, the contactURL works perfectly both for HTTP and HTTPS.
However, when I compile and run outside Qt Creator, only the HTTP that works. Am I forgetting to add a library or something?
Bookmarks