I tested other method ....

server has method POST but variable become $_SERVER["vars"] and not $_POST[vars]

Why?

Qt Code:
  1. pushButton->setEnabled(false);
  2. /* dear qt set and splitt the url self */
  3. QUrl url(weburlpostget);
  4. /* HEADER ONLY _SERVER["HTTP_PASSWORD"] */
  5. QHttpRequestHeader header("POST",url.path(), 1, 1);
  6. header.setValue("Host",url.host());
  7. header.setContentType("multipart/form-data");
  8. header.setValue("username", "afaf346afa");
  9. header.setValue("password", "sg233646fg");
  10. header.setValue("pirlo", "dsgdsdgf315125dsgsdg/");
  11. header.setValue("afafaff", "dsgdsd35215asfagdsgsdg/");
  12. header.setValue("afafafa", "dsgdsa525325sfadgdsgsdg/");
  13.  
  14. QByteArray *bytes = new QByteArray();
  15. bytes->append("-----------------------------125282808721657\n");
  16. bytes->append("Content-Disposition: form-data; name=\"\"; ");
  17. bytes->append("filename=\"kommnimmmich.txt\"\n");
  18. bytes->append("Content-length: 1");
  19. bytes->append("\nContent-Type: text/plain\n\n");
  20. bytes->append("hoi.");
  21. http_0 = new QHttp(this);
  22. http_0->setHost(url.host());
  23. http_0->post(url.path(),bytes);
  24. httpGetId = http_0->request(header,bytes,0);
  25. connect(http_0, SIGNAL(done(bool)), this, SLOT(FinishStream()));
To copy to clipboard, switch view to plain text mode 


on php file i put a log to grab action....

Qt Code:
  1. /* begin file #ob_start(); */
  2. $puffermg=ob_get_contents();
  3. while (@ob_end_clean());
  4. file_put_contents("lastaction.html",$puffermg);
  5. print($puffermg);
  6. exit;
To copy to clipboard, switch view to plain text mode