Hi
What i'm doing wrong here?
I just want to send text "name=next" to server http://192.168.0.199:38402.
QHttpRequestHeader header("POST", "/", 1, 1);
header.setValue("Host", "http://192.168.0.199:38402");
header.setContentType("application/x-www-form-urlencoded");
QString searchString = "name=next";
http->request(header,searchString.toUtf8());
What i really need is message like this:
(this is from firefox plug-in "Live http headers")
POST / HTTP/1.1
Host: 192.168.0.199:38402
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fi; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: fi-fi,fi;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://192.168.0.199:38402/
Content-Type: application/x-www-form-urlencoded
Content-Length: 9
name=next



