
本文共 3149 字,大约阅读时间需要 10 分钟。
������������������������������������
���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
PHP ������������������
PHP ������������������������������������������������������ task���������������������������������������������������������
$_FILES
������������������������������������������������������������������������������������������������������������ PHP ���������������������
0) { echo "������������������";}?>
������ curl ������������������������������ PHP ������������������������������
curl -F "action=file.php" -F "file=@xxx.c" http://192.168.1.162/file.php
Lua ������������������������
��������������������������������������������������������������� Lua ������������ Nginx ��� nginx_lua
��������������������������������������������� RESTful API ������������������
ngx_openresty
������������resty-upload
��������������������������������������������������������� savefile.lua
��������������������������������������������� Lua ���������������������
package.path = '/usr/local/share/lua/5.1/?.lua;/usr/local/openresty/lualib/resty/?.lua';package.cpath = '/usr/local/lib/lua/5.1/?.so';local upload = require "upload"local chunk_size = 4096local form = upload:new(chunk_size)local filelocal filelen = 0form:set_timeout(0) -- ���������������������������������
Perl ������������������������
Perl ���������������������������������������������������������������������������Per Never solution ������������������������������������
WWW::Curl::Easy
��� HTTP::Request
��������������������������������� Perl ���������������
use strict;use warnings;use WWW::Curl::Easy;use HTTP::Request;my $curl = WWW::Curl::Easy->new();# ������������������my $form = HTTP::Request->new();$form->method("POST");$form->uri("http://127.0.0.1/upload");
Nginx DAV ��������� PUT ������
Nginx ��� DAV ������������ RESTful ��������������������������������������� PUT ���������������������������������������������������������������
--with-http_dav_module
���������nginx.conf
������������������������������������location / { client_body_temp_path /usr/local/nginx/html/tmp; dav_methods PUT DELETE MKCOL COPY MOVE; create_full_put_path on; dav_access group:rw all:r; root html;}
������������������������������
���������������������������������������������������������������������������������������������
发表评论
最新留言
关于作者
