How can I issue a POST request over a QWebView instance?
Asked
Active
Viewed 2,218 times
2 Answers
1
I think the information below will help you:
1). Standard Qt example project, called "previewer", which comes with Qt SDK, may help you. For me, the absolute path is:
C:\Qt\4.6.2\examples\webkit\previewer
QWebView class, as I could test it, supports "post method", i.e. you can free open URL with POST page, and tap on the "Open file" button and after that upload any data.
2). About a month ago a have some kind of a problem with posting data (any files) to server, and here was my question.
0
There is a load method which allows you to specify custom QNetworkRequest object and request type (GET, POST etc): http://doc.qt.io/archives/4.6/qwebview.html#load-2

Christophe Weis
- 2,518
- 4
- 28
- 32

VestniK
- 1,910
- 2
- 17
- 29