C++ (Qt)QWebPage *page = new QWebPage(this);QNetworkRequest request;request.setRawHeader("Accept-Language", "en-us,en;q=0.5");request.setUrl(QUrl("http://www.site.com/"));page->mainFrame()->load(QUrl(request));
C++ (Qt)QWebElement submit = page->mainFrame()->findFirstElement("input[name=submit]");submit.evaluateJavaScript("this.click()");
C++ (Qt)class MySuperAccessManager : public QNetworkAccessManager{...createRequest ( Operation op, const QNetworkRequest & req, QIODevice * outgoingData = 0 ){ QNetworkRequest my_req(req); req.setRawHeader("Accept-Language", "en-US,en;q=0.8" ); return QNetworkAccessManager::createRequest(op, my_req, outgoingData);}...} QNetworkAccessManager * my_am = new QNetworkAccessManager();web_view->page()->setNetworkAccessManager(my_am);web_view->load("http://ya.ru");