Die letzte 3 Zeilen enthalten alles was Du suchst. Das musst Du rüberschicken, achte auf die richtige Längenangabe. ok war Name und Value eine Submit-Buttons, den man auf einer Webseite nunmal braucht.
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>413 Request Entity Too Large</title>
</head><body>
<h1>Request Entity Too Large</h1>
The requested resource<br />/checkVersion.php<br />
does not allow request data with POST requests, or the amount of data provided in
the request exceeds the capacity limit.
<hr />
<address>Apache/2.0.49 (Win32) mod_ssl/2.0.49 OpenSSL/0.9.7d PHP/4.3.6 mod_autoindex/color Server at localhost Port 80</address>
</body>
</html>
Hallo
Kommt etwas spät die Antwort, aber der zuständige Entwickler bei den Trolls war nicht erreichbar und deshalb bekam ich heute erst Antwort. Here it is:
The reason for this is basically that QHttp::post() does not send a
Content-Type header as part of the POST request, and some web servers
expects one of these, since they may not want or be able to guess the
type from the content. QHttp::post() should perhaps take one additional
argument describing the content type. We'll see if this can be changed
for a future release.
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>413 Request Entity Too Large</title>
</head><body>
<h1>Request Entity Too Large</h1>
The requested resource<br />/checkVersion.php<br />
does not allow request data with POST requests, or the amount of data provided in
the request exceeds the capacity limit.
<hr />
<address>Apache/2.0.49 (Win32) mod_ssl/2.0.49 OpenSSL/0.9.7d PHP/4.3.6 mod_autoindex/color Server at localhost Port 80</address>
</body>
</html>
Hallo
Es ist jetzt sicher ein bisschen lang her das diese Frage gestellt wurde aber ich hab trozdem eine Lösung gefunden, für Leute wie mich die sie brauchen.
Der trick ist eig ganz einfach.
Statt den Content-Type und Content-Length über setValue zu setzen,
muss die jeweilige Methode des QHttpRequestHeader Objektes benutz werden: