<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jan 29, 2015 at 7:27 PM, Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span>
On Thu, 29 Jan 2015, silvioprog wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
On Tue, Jan 27, 2015 at 12:58 PM, Michael Van Canneyt <<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>> wrote:<br>
[...]<br>
      The same can be done with FastCGI if you use mod_fastcgi and ExternalFastCGIServer. We do that at work.<br>
      Currently, I don't really see the added value in SCGI.<br>
<br>
<br>
yes yes, the idea to implement thats is just to adding support to a new protocol in Free Pascal, because SCGI seems easy to be implemented hehe... (several languages implement that)<br>
<br>
Currently I'm using CGI in production, but soon I'll use FastCGI as proxy, because some times I need to debug the already published application, so using nginx or Apache proxy I can point the "Proxy Pass" to my application<br>
running in my PC and debug it.<br>
</blockquote>
<br></span>
Yes, we do this too.<span><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
            Me too. But you can use the same CGI spec to get env. variables, query_string etc. SCGI is very easy to be implemented like CGI. I've<br>
            tested this draft to get all fields of a HTML form with POST: <a href="https://gist.github.com/ArtemGr/38425" target="_blank">https://gist.github.com/<u></u>ArtemGr/38425</a>. I can adapt it to Pascal too.<br>
<br>
<br>
      Please do, because the current implementation is not really useful. Accepting a socket connection and writing some data is simply "TCP/IP for beginners" :)<br>
<br>
<br>
Hehehe =D<br>
 <br>
      Not to mention that it will block if the server sends more than 4k data.<br>
<br>
      The real work is accepting content and parsing the headers. :)<br>
<br>
<br>
Yes, it can be implemented to read the buffer by demand like FCGI already does. =)<br>
</blockquote>
<br></span>
If you provide an initial implementation, I will be glad to add it to fcl-web.</blockquote></div><div><br></div><div>Awesome. I started it. =)</div><div><br></div><div>Maybe it take a while because my chronic lack of time, but I've created an environment to implement it.</div><div><br></div>-- <br><div>Silvio Clécio<br>My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a></div>
</div></div>