Hi!
I've a simple code to download "path" file to "file" on my disk.
Qt Code:
  1. QHttp *http = new QHttp(this);
  2. connect(http, SIGNAL(requestFinished(int, bool)), this, SLOT(httpRequestFinished(int, bool)));
  3. QUrl url(StrUrl);
  4. file = new QFile(fileName);
  5. if (!file->open(QIODevice::WriteOnly)) {
  6. qDebug() << "open file error";
  7. delete file;
  8. file = 0;
  9. return;
  10. }
  11. QHttp::ConnectionMode mode = url.scheme().toLower() == "https" ? QHttp::ConnectionModeHttps : QHttp::ConnectionModeHttp;
  12. http->setHost(url.host(), mode, url.port() == -1 ? 0 : url.port());
  13. QByteArray path = QUrl::toPercentEncoding(url.path(), "!$&'()*+,;=:@/");
  14. httpGetId = http->get(path, file);
To copy to clipboard, switch view to plain text mode 

If i write path like:
Qt Code:
  1. http://www.qtcentre.org/forum/newthread.php
To copy to clipboard, switch view to plain text mode 
i's doing right, but when I connect to get fields (ex. do=newthread&f=4) to string
Qt Code:
  1. http://www.qtcentre.org/forum/newthread.php?do=newthread&f=4
To copy to clipboard, switch view to plain text mode 
the get field is not pas :/

I'm using simple code in PHP to test
Qt Code:
  1. echo 'OK';
  2. print_r($_REQUEST);
To copy to clipboard, switch view to plain text mode 

And I get empty $_REQUEST :/