<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014-02-27 4:53 GMT-03:00 Giuseppe <span dir="ltr"><<a href="mailto:glpunzi@gmail.com" target="_blank">glpunzi@gmail.com</a>></span>:</div><div class="gmail_quote">
[...]<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"><div dir="auto"><div><span style="background-color:rgba(255,255,255,0)">/////</span><br>
</div><div><span style="background-color:rgba(255,255,255,0)">Open \brookframework\demos\simple\entity project<br>Build.<br>Copy to <a href="http://cg1.bf" target="_blank">cg1.bf</a> to cgi-bin folder<br><a href="http://localhost:8080/cgi-bin/cgi1.bf" target="_blank">http://localhost:8080/cgi-bin/cgi1.bf</a> returns "HTTP method not allowed for the requested resource."</span></div>
<div><span style="background-color:rgba(255,255,255,0)">Didn't worked (with </span><span>BrookFCLCGIBroker</span><span style="background-color:rgba(255,255,255,0)">, either with </span><span>BrookFCLHttpAppBroker</span><span style="background-color:rgba(255,255,255,0)">)</span></div>
</div></blockquote><div><br></div><div>Well, see:</div><div><br></div><div><div> TMyAction = class(specialize TBrookEntityAction<TMyType>)</div><div> public</div><div> procedure Post; override; <<<<<< POST</div>
<div> end;</div></div><div><br></div><div>ie, you can't open it directly in the URL of Chrome (GET), you need to call it via POST method (using rest client).</div><div> </div><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">
<div dir="auto"><div><span style="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 href="http://localhost/" target="_blank">http://localhost</a> returns "HTTP method not allowed for the requested resource."<br></span></div>
</div></blockquote><div><br></div><div>Oh, you can't open it directly in the URL of Chrome too calling only localhost. Compile your project using CGI broker, copy your executable to the cgi-bin folder, copy "form.html" to the htdocs folder, after, call: "<a href="http://localhost/form.html">http://localhost/form.html</a>". Using this form it will do a request using POST method.</div>
<div><br></div></div>-- <br>Silvio Clécio<br>My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a>
</div></div>