<div dir="ltr"><div class="gmail_extra"><div class="gmail_extra">> <span style="font-size:12.8px">[Please keep discussions on the mailing list.]</span></div><div class="gmail_extra"><span style="font-size:12.8px"><br></span></div><div class="gmail_extra"><span style="font-size:12.8px">I accidentally clicked on "Reply" instead of "Reply to all" but later I </span><span style="font-size:12.8px">did</span></div><div class="gmail_extra"><span style="font-size:12.8px">send a separate mail to the mailing list.</span></div><div class="gmail_extra"><span style="font-size:12.8px"><br></span></div><div class="gmail_extra">> Thinking about this, the way that CGI works is you set a 'Status'</div><div class="gmail_extra">> header which changes this behaviour. So we don't actually need a</div><div class="gmail_extra">> new command, just something like:</div><div class="gmail_extra">></div><div class="gmail_extra">> $httpheader{Status,302 Found}</div><div class="gmail_extra">> $httpheader{Location,$cgi{URL}}</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ok, got it. I was initially under the impression that we needed a new</div><div class="gmail_extra">Omegascript command to enable opening a webpage given a url.</div><div class="gmail_extra"><br></div><div class="gmail_extra">> See <a href="http://www.oreilly.com/openbook/cgi/ch03_07.html">http://www.oreilly.com/openbook/cgi/ch03_07.html</a> and the</div><div class="gmail_extra">> parse_omegascript() function (in query.cc).</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks, I found that link very helpful. Great book on CGI programming.</div><div class="gmail_extra"><br></div><div class="gmail_extra">> You can run omega.cgi from the command line without installing it and</div><div class="gmail_extra">> going via a web server. This is what the omegatests do, for instance.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Yeah, I was thinking about doing the same. Thanks, will try that.</div><div class="gmail_extra"><br></div><div class="gmail_extra">> Don't do it like this; you can open a PR and note in the comment that</div><div class="gmail_extra">> it isn't ready for merge, and then we get much better tools for</div><div class="gmail_extra">> discussing the source code.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Okay, will open a PR with adding the new $qid{} command first. Although,</div><div class="gmail_extra">I was going to wait until the preprocessing script was complete and then</div><div class="gmail_extra">open a single PR for the whole logging functionality.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks,</div><div class="gmail_extra">Vivek</div></div></div>