Ah, I think I've solved it now.

Qt Code:
  1. QByteArray* ba=new QByteArray("a=aaa&b=bbb&ok=ok");
  2. const QString s("/url.php Accept: text/html, text /plain, text/css, text/sgml, */* ;q=0.01\nAccept-Encoding : gzip, bzip2\nAccept-Language: en\nPragma: no-cache\nCache-Control: no-cache\nUser-Agent: Foobar\nReferer: http://localhost /a.php\nContent-type:application/x-www-form-urlencoded\nContent-lentgh::17\n");
  3. QHttpobject->post( s, *ba);
To copy to clipboard, switch view to plain text mode