mainzelm
e3d252c370
Use a port buffer of 4096 bytes when reading the CGI script's output
...
and copy 4094 bytes at once from this buffer to output port.
2003-02-26 18:02:14 +00:00
mainzelm
bc6324e252
Generate a pair of status and text if the CGI script failed to provide
...
the "Status" header.
2003-02-20 08:57:59 +00:00
interp
da98c4b78c
factor out GET-HEADER
2003-02-19 17:05:16 +00:00
mainzelm
615886e492
Provide default values if the CGI script fails to provide status or
...
content-type.
2003-01-28 15:20:36 +00:00
sperber
8b2217907e
Overhaul RFC822:
...
- reduce RFC822 to four procedures, 2 for reading header bodies into
lists of lines, 2 for reading them into concatenated strings
- remove lots of Olinism and bugs from rfc822.scm
- massage dependent code accordingly, clarifying semantics
2003-01-20 16:26:26 +00:00
mainzelm
7e274597a4
Fix handling of "npg-" scripts by using make-nph-response.
2003-01-15 14:03:30 +00:00
mainzelm
7170593056
Use number->status-code to generate status-code from the code returned
...
in the CGI header.
2003-01-15 14:02:02 +00:00
sperber
8ed2a48176
Rename URI-PATH-LIST->PATH to URI-PATH->URI and SPLIT-URI-PATH to
...
SPLIT-URI.
Also fix paren typo from earlier commit.
2003-01-14 15:02:07 +00:00
sperber
9a9d91fe92
Don't look at (getenv "PATH") when determining the PATH set for the
...
CGI script.
2003-01-10 13:31:06 +00:00
sperber
86b0639a7f
Rename MAKE-HTTP-ERROR-RESPONSE -> MAKE-ERROR-RESPONSE to be
...
consistent with MAKE-RESPONSE.
2003-01-10 09:52:35 +00:00
sperber
26de50f074
Don't set REMOTE_HOST---we set REMOTE_ADDR, and that's enough
...
according to the CGI spec. (REMOTE_HOST required that we do a DNS
lookup.)
2003-01-09 16:02:40 +00:00
sperber
0754b74963
Replace integer HTTP status codes by finite record type instances.
2003-01-09 15:05:30 +00:00
mainzelm
7fc87572bb
Last commit accidentally commented out REMOTE_HOST.
2002-12-29 17:52:26 +00:00
mainzelm
bfab4cc710
Correct leftover from the fork-based implementation: stdin of the CGI
...
script must be the socket's input port.
2002-12-29 17:47:41 +00:00
sperber
4e859bc92a
- renamed USERHOST:xxx to USERHOST-xxx
...
- renamed HTTP-URL:xxx to HTTP-URL-xxx
2002-11-29 14:56:58 +00:00
sperber
641b8129ba
Renamed REQUEST:xxx to REQUEST-xxx.
2002-11-29 14:49:22 +00:00
sperber
c0281e834a
Rename "path handler" -> "request handler".
2002-09-22 15:41:41 +00:00
interp
65e8af2952
send error output to stdout (= to client)
2002-09-04 10:29:12 +00:00
interp
794412df5a
use HTTP-STATUS/OK constant instead of integer 200
2002-09-03 13:33:43 +00:00
interp
80257c0822
make more pleasent error messages
2002-09-03 12:45:39 +00:00
interp
1694d372c5
report BAD-GATEWAY error instead INTERNAL-ERROR
2002-09-03 11:55:53 +00:00
interp
443e321cc8
rename URI-LIKE? to URI-HAS-PROTOCOL?
2002-09-03 08:45:59 +00:00
interp
27f6bb4dbd
remove debug output
2002-09-02 14:33:06 +00:00
interp
9baec4fbf0
Handle `Location:' and `Status:' headers of CGI program's output correctly.
2002-09-02 13:43:03 +00:00
interp
f94396a54e
look if file is executable
2002-08-29 14:53:44 +00:00
interp
5bced0b8f7
remove introduced but nerving signal stuff from handlers
2002-08-29 08:32:39 +00:00
interp
7fd23a0ceb
let handler exit if error occurs
2002-08-28 15:40:32 +00:00
interp
e877336d0a
send extra headers from script's output
2002-08-28 10:10:45 +00:00
interp
542fea9f55
adpat cgi-server to new response philosophy
...
NOTE: There's a FIXME left: nph- scripts won't work at all currently.
2002-08-28 09:54:40 +00:00
sperber
aeeeea79c1
Add copyright notice.
2002-08-27 09:03:22 +00:00
sperber
1a1dcebbd0
Remove HTTP-CONSTANTS / http/constants.scm.
2002-08-26 11:44:02 +00:00
sperber
e8b7ef763f
Remove Olin's import notes which are bound to be inaccurate by now.
...
Fix a few RFC URLs.
2002-08-26 11:18:44 +00:00
sperber
6f7cd467f1
Adopt proper RFC terminology:
...
"reply" -> "response"
"reply code" -> "status code"
2002-08-26 09:59:14 +00:00
interp
5f654f5fc3
use char-set:digit instead of deprecated char-set:numeric
2002-08-23 15:44:40 +00:00
interp
3573dcc613
* moved files concerning web server to new subdirectory httpd
...
* minor change in inner order of modules.scm
* commented out structure in program-modules: source files are missing (?)
2002-05-14 13:53:55 +00:00