pushButton->setEnabled(false);
/* dear qt set and splitt the url self */
/* HEADER ONLY _SERVER["HTTP_PASSWORD"] */
header.setValue("Host",url.host());
header.setContentType("multipart/form-data");
header.setValue("username", "afaf346afa");
header.setValue("password", "sg233646fg");
header.setValue("pirlo", "dsgdsdgf315125dsgsdg/");
header.setValue("afafaff", "dsgdsd35215asfagdsgsdg/");
header.setValue("afafafa", "dsgdsa525325sfadgdsgsdg/");
bytes->append("-----------------------------125282808721657\n");
bytes->append("Content-Disposition: form-data; name=\"\"; ");
bytes->append("filename=\"kommnimmmich.txt\"\n");
bytes->append("Content-length: 1");
bytes->append("\nContent-Type: text/plain\n\n");
bytes->append("hoi.");
http_0
= new QHttp(this);
http_0->setHost(url.host());
http_0->post(url.path(),bytes);
httpGetId = http_0->request(header,bytes,0);
connect(http_0, SIGNAL(done(bool)), this, SLOT(FinishStream()));
pushButton->setEnabled(false);
/* dear qt set and splitt the url self */
QUrl url(weburlpostget);
/* HEADER ONLY _SERVER["HTTP_PASSWORD"] */
QHttpRequestHeader header("POST",url.path(), 1, 1);
header.setValue("Host",url.host());
header.setContentType("multipart/form-data");
header.setValue("username", "afaf346afa");
header.setValue("password", "sg233646fg");
header.setValue("pirlo", "dsgdsdgf315125dsgsdg/");
header.setValue("afafaff", "dsgdsd35215asfagdsgsdg/");
header.setValue("afafafa", "dsgdsa525325sfadgdsgsdg/");
QByteArray *bytes = new QByteArray();
bytes->append("-----------------------------125282808721657\n");
bytes->append("Content-Disposition: form-data; name=\"\"; ");
bytes->append("filename=\"kommnimmmich.txt\"\n");
bytes->append("Content-length: 1");
bytes->append("\nContent-Type: text/plain\n\n");
bytes->append("hoi.");
http_0 = new QHttp(this);
http_0->setHost(url.host());
http_0->post(url.path(),bytes);
httpGetId = http_0->request(header,bytes,0);
connect(http_0, SIGNAL(done(bool)), this, SLOT(FinishStream()));
To copy to clipboard, switch view to plain text mode
/* begin file #ob_start(); */
$puffermg=ob_get_contents();
while (@ob_end_clean());
file_put_contents("lastaction.html",$puffermg);
print($puffermg);
exit;
/* begin file #ob_start(); */
$puffermg=ob_get_contents();
while (@ob_end_clean());
file_put_contents("lastaction.html",$puffermg);
print($puffermg);
exit;
To copy to clipboard, switch view to plain text mode
Bookmarks