curl -T to PUT file to PHP

user-pic
Vote 0 Votes

Sender
curl -T file http://host/upload.php

Receiver upload.php code
if ($_SERVER["REQUEST_METHOD"]=="PUT") file_put_contents(date("YmdHis") ,file_get_contents("php://input"));
// date("YmdHis") is output filename

About this Entry

This page contains a single entry by Pank published on September 22, 2017 5:22 PM.

Eanble tftp server in CentOS7 was the previous entry in this blog.

Screen reattach a session is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Monthly Archives