Hi Tom;
guck mal:
PUT /getpost.php?file=asdf&size=123 HTTP/1.0
Connection: Close
Content-Length: 4
Content-Type: application/octet-stream
Host: rolfrost
asdf
=================================================================
HTTP/1.1 200 OK
Date: Sun, 02 Jun 2019 06:57:55 GMT
Server: Apache/2.2.14 (Win32) PHP/5.3.0
X-Powered-By: PHP/5.3.0
Content-Length: 57
Connection: close
Content-Type: text/plain;charset=UTF-8
Array
(
[file] => asdf
[size] => 123
)
BODY:
asdf
Das ist Request/Response. Serverseitig hab ich (getpost.php):
<?php
header("Content-Type: text/plain");
print_r($_GET);
echo "BODY:\n";
echo file_get_contents("php://input");
Also kein Problem an die Daten zu kommen. Einfacher gehts wirklich nicht. MFG
PS: Anstatt asdf
kannst beliebige Dateiinhalte senden.