added script download test
This commit is contained in:
BIN
www/directory/root.png
Normal file
BIN
www/directory/root.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 446 KiB |
1
www/file.md
Normal file
1
www/file.md
Normal file
@@ -0,0 +1 @@
|
||||
some md file to test upload
|
||||
@@ -208,7 +208,7 @@
|
||||
<input type="text" id="sleep" name="sleep" value="5"><br><br>
|
||||
<input type="submit" value="submit">
|
||||
<h3>expectation:</h3>
|
||||
<p>the request will sleep for one minute</p>
|
||||
<p>the request will sleep for chosen seconds</p>
|
||||
<p>but other request chould not be blocked</p>
|
||||
</form>
|
||||
<br>
|
||||
@@ -276,8 +276,35 @@
|
||||
<h3>expectation:</h3>
|
||||
<p>error 500</p>
|
||||
</form>
|
||||
<br>
|
||||
|
||||
<form method="get" action="/cgi-bin/cgi_cpp_download.out">
|
||||
<h1>WIP</h1>
|
||||
<p><mark>get</mark> form</p>
|
||||
<p>to <mark>/cgi-bin/cgi_cpp_download.out</mark></p>
|
||||
<label for="fdownload">download file:</label><br>
|
||||
<input type="file" id="fupload" name="fupload">
|
||||
<select name="file">
|
||||
<option value="Cagneyc_intro.gif" >Cagneyc_intro.gif </option>
|
||||
<option value="file.md" >file.md </option>
|
||||
<option value="index.html" >index.html </option>
|
||||
<option value="kermit.ico" >kermit.ico </option>
|
||||
<option value="punpun.png" selected>punpun.png </option>
|
||||
<option value="subject.pdf" >subject.pdf </option>
|
||||
<option value="Van_Eyck_Portrait_Arnolfini.jpg" >Van_Eyck_Portrait_Arnolfini.jpg</option>
|
||||
<option value="directory" >directory </option>
|
||||
<option value="DOESNT_EXIST.BAD" >DOESNT_EXIST.BAD </option>
|
||||
</select>
|
||||
<input type="submit" value="submit">
|
||||
<h3>expectation:</h3>
|
||||
<p>get a file in list</p>
|
||||
<p>from ./www/user_files/</p>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="post">
|
||||
<form method="post" action="/cgi-bin/cgi_cpp.out">
|
||||
<p><mark>post</mark> form</p>
|
||||
@@ -433,7 +460,7 @@
|
||||
<input type="text" id="sleep" name="sleep" value="5"><br><br>
|
||||
<input type="submit" value="submit">
|
||||
<h3>expectation:</h3>
|
||||
<p>the request will sleep for one minute</p>
|
||||
<p>the request will sleep for chosen seconds</p>
|
||||
<p>but other request chould not be blocked</p>
|
||||
</form>
|
||||
<br>
|
||||
@@ -501,6 +528,18 @@
|
||||
<h3>expectation:</h3>
|
||||
<p>error 500</p>
|
||||
</form>
|
||||
<br>
|
||||
|
||||
<form method="post" action="/cgi-bin/cgi_cpp_upload.out" enctype="multipart/form-data">
|
||||
<h1>WIP</h1>
|
||||
<p><mark>post</mark> form</p>
|
||||
<p>to <mark>/cgi-bin/cgi_cpp_upload.out</mark></p>
|
||||
<label for="fupload">Upload file:</label><br>
|
||||
<input type="file" id="fupload" name="fupload">
|
||||
<input type="submit" value="submit">
|
||||
<h3>expectation:</h3>
|
||||
<p>upload file in ./www/user_files/</p>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
BIN
www/subject.pdf
Normal file
BIN
www/subject.pdf
Normal file
Binary file not shown.
BIN
www/user_files/duck.jpg
Normal file
BIN
www/user_files/duck.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 171 KiB |
Reference in New Issue
Block a user