m_http = new QHttp("localhost"); connect(m_http, SIGNAL(requestFinished(int, bool)), SLOT(httpRequestFinished(int, bool))); QHttpRequestHeader header("POST", "/index.php"); header.setValue("Host", "localhost"); header.setValue( "User-Agent", "User Agent"); header.setContentType("application/x-www-form-urlencoded"); QString searchString = "postparam=value&post2=val"; m_http->request(header,searchString.toUtf8());