I have a very basic althttpd setup: fieldston:test swoods$ tree . └── default.website ├── cgi ├── cgi.c └── index.html
1 directory, 3 files `cgi` is a build of `cgi.c`, which is: fieldston:test swoods$ cat default.website/cgi.c #include <stdlib.h> #include <stdio.h> int main(int argc, char *argv[]) { printf("Content-type: text/html\r\n"); printf("Connection: close\r\n\r\n"); printf("<h1>Hello, world!</h1>"); return 1; } I run althttpd using the `-port` command to create a standalone server. My problem is: while requesting a static resource with this method works just fine, requesting a CGI resource - even with `Connection: close` as a header - doesn't return right away. It seems to be waiting for an additional connection (keep-alive ish). What's the "proper" way to send CGI output to althttpd? I tried a `Content-length` parameter and that does work, but it means I need to buffer my output for each response - and I thought the server was supposed to do that for me? I also tried setting a "Status" header to "200" I read through the code but don't see anything obvious so it must be more subtle... Any pointers would be great! Thanks. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users