Posted: Fri 29 Oct 2010, 17:16 Post subject:
thttpd-2.25b-i486-static build - tiny webserver
thttpd - tiny/turbo/throttling HTTP server.
This is a static build. 134K for the server itself. Included small examples of web-pages, cgi-scripts and example of password protected directory tree. Fast and light weight. Relatively easy to configure. Init-script included so server will start at boot - to disable this move/delete /etc/init.d/rc.thttpd.
Ideal for small embedded servers...
Read the manual/notes for further configuring like chroot-running, throttling or multiple domains.
I have been working a little further on the script CGI and ran into the following problem:
File uploaded to the web server via the POST command from a web-page can be captured at the server using the "cat" command. The result is a file containing additional lines added by the server. Example content after upload:
A script can afterwards remove the 4 header lines and the two bottom lines.
MD5sum and diff shows that text/xpm-files are identical but if binary files are uploaded it fails.
Anyone have any idea to overcome this? It would be very much appreciated!
Attached 4 files: 2 text files before and after upload and 2 binary files before and after upload - if you feel like testing...
So main problem is to modify the two uploaded files to become identical with the originals - knowing that server did put 4 lines in the top and 2 lines in the bottom...
Update: Another solution is to use ccgi: Attached example based on cgic205-lib using a static compiled ccgi (29K) to perform the upload (embedded in a sh-script cgi-page).
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum