Hello,

variables from GET method I get without problem

Qt Code:
  1. }else if (httpHeader->method() == "GET"){
  2. QUrl* url = new QUrl(httpHeader->path());
  3. QList< QPair<QString, QString> > params = url->queryItems();
  4. QMap<QString, QString> paramsMap;
  5. for(int i=0; i<params.size(); i++){
  6. paramsMap[params[i].first] = params[i].second;
  7. }
  8. ...
To copy to clipboard, switch view to plain text mode 

I can work with variables like this: paramsMap["name"]

But I need use the POST method? How I get variables? Help please...

I can only get this:
user-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6
accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
accept-language: en-us,en;q=0.5
accept-encoding: gzip,deflate
accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
keep-alive: 300
connection: keep-alive

by
Qt Code:
  1. if(httpHeader->method() == "POST"){
  2. QUrl* url = new QUrl(httpHeader->path());
  3. QList< QPair<QString, QString> > params = httpHeader->values();
  4. for(int i=0; i<params.size(); i++){
  5. out << params[i].first << ": " << params[i].second << endl;
  6. }
  7. ...
To copy to clipboard, switch view to plain text mode