mirror of
https://github.com/sheumann/hush.git
synced 2024-11-16 03:06:45 +00:00
Make POST upload example script easier to use
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
6704746c69
commit
5d27cb3640
20
networking/httpd_post_upload.txt → networking/httpd_post_upload.cgi
Normal file → Executable file
20
networking/httpd_post_upload.txt → networking/httpd_post_upload.cgi
Normal file → Executable file
@ -1,18 +1,12 @@
|
||||
POST upload example:
|
||||
|
||||
post_upload.htm
|
||||
===============
|
||||
<html>
|
||||
<body>
|
||||
<form action=/cgi-bin/post_upload.cgi method=post enctype=multipart/form-data>
|
||||
File to upload: <input type=file name=file1> <input type=submit>
|
||||
</form>
|
||||
|
||||
|
||||
post_upload.cgi
|
||||
===============
|
||||
#!/bin/sh
|
||||
|
||||
# post_upload.htm example:
|
||||
# <html>
|
||||
# <body>
|
||||
# <form action=/cgi-bin/httpd_post_upload.cgi method=post enctype=multipart/form-data>
|
||||
# File to upload: <input type=file name=file1> <input type=submit>
|
||||
# </form>
|
||||
|
||||
# POST upload format:
|
||||
# -----------------------------29995809218093749221856446032^M
|
||||
# Content-Disposition: form-data; name="file1"; filename="..."^M
|
Loading…
Reference in New Issue
Block a user