Work on the CGI handling.

This commit is contained in:
Brad Arant committed 2024-11-11 15:59:42 -08:00
1 parent 496b90a680
commit 39f5936787
5 files changed
+41 -2

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
POST /cgi-bin/qtest HTTP/1.1
Content-Type: multipart/form-data;
boundary=2a8ae6ad-f4ad-4d9a-a92c-6d217011fe0f
Content-Length: 514
--2a8ae6ad-f4ad-4d9a-a92c-6d217011fe0f
Content-Disposition: form-data; name="datafile1"; filename="r.gif"
Content-Type: image/gif
GIF87a.............,...........D..;
--2a8ae6ad-f4ad-4d9a-a92c-6d217011fe0f
Content-Disposition: form-data; name="datafile2"; filename="g.gif"
Content-Type: image/gif
GIF87a.............,...........D..;
--2a8ae6ad-f4ad-4d9a-a92c-6d217011fe0f
Content-Disposition: form-data; name="datafile3"; filename="b.gif"
Content-Type: image/gif
GIF87a.............,...........D..;
--2a8ae6ad-f4ad-4d9a-a92c-6d217011fe0f--
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
export REQUEST_METHOD=POST
export CONTENT_LENGTH=554
export CONTENT_TYPE=multipart/form-data
cat post.example | ./testpost.jet
+4
View File
@@ -0,0 +1,4 @@
#!../jet-2.0
<jet cgi="true">
</jet>