POST request with QWebView

How can I send a POST request through a QWebView instance?

+2


a source to share


2 answers


I think the information below will help you:

1). A standard Qt project called "preview" that comes with the Qt SDK may help you. For me the absolute path is:

C:\Qt\4.6.2\examples\webkit\previewer

      



The QWebView class, as I could check, supports the "post method", i.e. you can open the open url with the POST page and click the "Open File" button and after that download any data.

2). About a month ago you had some kind of problem sending data (any files) to the server and here is my question .

+1


a source


There is a upload method that allows you to specify a custom QNetworkRequest object and request type (GET, POST, etc.): http://doc.qt.io/archives/4.6/qwebview.html#load-2



0


a source







All Articles