REBOL Technologies

CGI requires content-length

Carl Sassenrath, CTO
REBOL Technologies
30-Jan-2016 16:50 GMT

Article #0553
Main page || Index || Prior Article [0552] || Next Article [0554] || 6 Comments || Send feedback

I've noticed that various Rebol CGI website scripts hang. Apparently, HTTP POST on newer servers (or clients actually) keeps the socket open in such a way that the standard read-cgi function hangs.

The fix I use in newer scripts is to use the CGI content-length field to terminate the read.

If you have insights into this problem, please comment. I'd like to fix read-cgi in the next release.


Updated 11-Mar-2024   -   Copyright Carl Sassenrath   -   WWW.REBOL.COM   -   Edit   -   Blogger Source Code