Hi
How can I post data to QWebView
Hi
How can I post data to QWebView
or is it even possible?
or can I enter data in a form in an existing widget?
Basically I'm trying to automatically log into a website
What do you mean "post data to QWebView"? What data? QWebView is just a widget that displays a web page. If you want to log onto the site, you have to post the data to the server and not your local widget.
What I mean is controlling the widget to make it post the login information, as if someone is manually entering the data, if thats possible...
I've tried reading the source code for the login webpage and posting the keys and values that are in the form to the server and displaying the result in the widget. I can display the html data I get back from the server, how do I get the url that the server replies with
chrisb123 (29th October 2009)
awesome it works as expected
Qt Code:
QByteArray iws2; iws2.append("username=" + user2.toAscii()); iws2.append("&password=" + pass2.toAscii()); load(QNetworkRequest(iws),QNetworkAccessManager::PostOperation,iws2);To copy to clipboard, switch view to plain text mode
msimurin (30th April 2010)
Bookmarks