Paste: Factor/Python Server CGI Comparison

Author: Serre
Mode: text
Date: Sat, 31 Jan 2026 17:30:40
Plain Text |
### Factor Server:
[rabbit@void-rabbit cgi-bin]$ curl -d "hello" -v http://localhost:8080/cgi-bin/dead-simple.cgi
* Host localhost:8080 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
*   Trying [::1]:8080...
* connect to ::1 port 8080 from ::1 port 38864 failed: Connection refused
*   Trying 127.0.0.1:8080...
* Established connection to localhost (127.0.0.1 port 8080) from 127.0.0.1 port 41414 
* using HTTP/1.x
> POST /cgi-bin/dead-simple.cgi HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/8.17.0
> Accept: */*
> Content-Length: 5
> Content-Type: application/x-www-form-urlencoded
> 
* upload completely sent off: 5 bytes
< HTTP/1.1 200 CGI output follows
< Content-type: text/html
* no chunk, no close, no size. Assume close to signal end
< 

f
* shutting down connection #0

### Python server, for reference:
[rabbit@void-rabbit cgi-bin]$ curl -d "hello" -v http://localhost:8000/cgi-bin/dead-simple.cgi
* Host localhost:8000 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
*   Trying [::1]:8000...
* connect to ::1 port 8000 from ::1 port 41378 failed: Connection refused
*   Trying 127.0.0.1:8000...
* Established connection to localhost (127.0.0.1 port 8000) from 127.0.0.1 port 57826 
* using HTTP/1.x
> POST /cgi-bin/dead-simple.cgi HTTP/1.1
> Host: localhost:8000
> User-Agent: curl/8.17.0
> Accept: */*
> Content-Length: 5
> Content-Type: application/x-www-form-urlencoded
> 
* upload completely sent off: 5 bytes
* HTTP 1.0, assume close after body
< HTTP/1.0 200 Script output follows
< Server: SimpleHTTP/0.6 Python/3.13.9
< Date: Sat, 31 Jan 2026 17:25:44 GMT
< Content-type: text/html
< 

"hello"
* shutting down connection #0

New Annotation

Summary:
Author:
Mode:
Body: