Ah, I think I've solved it now.
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");
QHttpobject->post( s, *ba);
QByteArray* ba=new QByteArray("a=aaa&b=bbb&ok=ok");
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");
QHttpobject->post( s, *ba);
To copy to clipboard, switch view to plain text mode
Bookmarks