<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div style="-webkit-text-size-adjust: auto;"><br></div><blockquote type="cite" style="-webkit-text-size-adjust: auto;"><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">
</div><div>I don't know if our environment is similar to reproduce it. My environment is:<br></div><div><br></div><div>Windows 8, 64 bit.</div><div>Lazarus 1.0.14 r43446 FPC 2.6.2 i386-win32-win32/win64.<br>
</div><div>Brook via trunk.</div><div>PostgreSQL 8.4, 32 bit.</div><div><div>Apache/2.2.22 (Win32), Server built: Jan 28 2012 11:16:39.</div></div><div><br></div><div>Are you executing the demo using correct Url/HTTP request methods?</div></div></div></div></blockquote><br><div style="-webkit-text-size-adjust: auto;">It's similar, just Laz version different. As I mentioned on previous mail...</div><div style="-webkit-text-size-adjust: auto;"><br></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Lazarus 1.2RC2, FPC 2.6.2 rev.43696, 32 bits.<br>brookframework downloaded from github.<br>Opened brookex and brookrt lpk and compiled.<br>dopf downloaded from github, opened and compiled.<br><br>////<br>Open brookframework\demos\simple\helloworld\cgi project<br>Build.<br>Copy to cgi-bin folder<br><a class="moz-txt-link-freetext" href="http://localhost:8080/cgi-bin/cgi1.bf">http://localhost:8080/cgi-bin/cgi1.bf</a> returns Hello World!</span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">This works....</span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><br>/////<br>Open brookframework\demos\simple\static project<br>Build.<br>Execute test.exe<br><a class="moz-txt-link-freetext" href="http://localhost:8000/index">http://localhost:8000/index</a> returns static page opening a dialog as expected.</span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">This works....</span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><br>/////<br>Open \brookframework\demos\simple\entity project<br>Build.<br>Copy to cg1.bf to cgi-bin folder<br><a class="moz-txt-link-freetext" href="http://localhost:8080/cgi-bin/cgi1.bf">http://localhost:8080/cgi-bin/cgi1.bf</a> returns "HTTP method not allowed for the requested resource."</span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Didn't worked (with </span><span style="-webkit-text-size-adjust: auto;">BrookFCLCGIBroker</span><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">, either with </span><span style="-webkit-text-size-adjust: auto;">BrookFCLHttpAppBroker</span><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">)</span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><br></span><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">//////<br>Created postgres database with table person.<br>Open brookframework/demos/db/dopf/cgi1.lpi<br>Changed db configuration from dbutils.pas pointing to my database<br>Copied all postgres dll from postgres/bin folder to project folder.<br><a class="moz-txt-link-freetext" href="http://localhost/">http://localhost</a> returns "HTTP method not allowed for the requested resource."<br><br>Shell:<br>D:\DevAux\LazComp\brookframework\demos\db\dopf>cgi1.exe<br>exception at 0043A79E:<br>Missing HTTP protocol version in request.</span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><br></span></div><div style="-webkit-text-size-adjust: auto;"><span style="background-color: rgba(255, 255, 255, 0);">Didn't worked (with </span>BrookFCLCGIBroker<span style="background-color: rgba(255, 255, 255, 0);">, either with </span>BrookFCLHttpAppBroker<span style="background-color: rgba(255, 255, 255, 0);">)<br></span></div><div style="-webkit-text-size-adjust: auto;"><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div style="-webkit-text-size-adjust: auto;"><span style="background-color: rgba(255, 255, 255, 0);">//////</span></div><div style="-webkit-text-size-adjust: auto;"><div style="-webkit-text-size-adjust: none;"><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Open brookframework\demos\db\rest project<br>Build.<br></span><span style="-webkit-text-size-adjust: auto;">Copy to rest.bf to cgi-bin folder</span><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><br></span><a class="moz-txt-link-freetext" href="http://localhost:8080/cgi-bin/cgi1.bf" style="-webkit-text-size-adjust: auto;">http://localhost:8080/cgi-bin/</a>rest.bf<span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"> returns data as expected. </span></div><div style="-webkit-text-size-adjust: none;"><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Works from advanced rest client on chrome too</span></div><div style="-webkit-text-size-adjust: none;"><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">This works as embbebed too AFAIR.</span></div><div style="-webkit-text-size-adjust: none;"><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><br></span></div><div style="-webkit-text-size-adjust: none;"><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Regards.</span></div></div><div style="-webkit-text-size-adjust: auto;"><br></div><div style="-webkit-text-size-adjust: auto;"><br></div></body></html>