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
|
#!/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:
|
# POST upload format:
|
||||||
# -----------------------------29995809218093749221856446032^M
|
# -----------------------------29995809218093749221856446032^M
|
||||||
# Content-Disposition: form-data; name="file1"; filename="..."^M
|
# Content-Disposition: form-data; name="file1"; filename="..."^M
|
Loading…
x
Reference in New Issue
Block a user