Re: cgi.rb



> i am looking at cgi.rb module, and it looks like it produces valid HTTP
> responses such as
>
> HTTP/1.1 404 Not Found
> Date: Tue, 29 Nov 2005 06:52:21 GMT\r\n
> Content-Length: 0\r\n
> Connection: close\r\n
> Content-Type: text/html\r\n
> \r\n
> ....
>
> what i expected it to produce is CGI headers so that the web server (I
> am using Apache) could interpret the CGI response correctly and act on
> it:
>
> Status: 404 Not Found\r\n
> Content-Type: text/html\r\n
> \r\n
> ....
>
> has anyone used cgi.rb? i know rails, nitro etc use it. has anyone
> noticed this? can this be controlled?


Are you setting "nph" => true when calling CGI#out or CGI#header? If you
are, you probably don't want to. I believe that controls whether or not the
HTTP version and response are printed (among other variables like whether
you're using mod_ruby or IIS). See line 559 of cgi.rb in a Ruby
1.8.2distro for details.

Cheers,
/Nick


Relevant Pages

  • Restricting entry on tab pages
    ... Description, Response, Follow-up, and Final Approval. ... Each section is on its own page of a tab control. ... Dim ctl As Control ... provision that allows a member of the Admins group to edit any controls. ...
    (microsoft.public.access.formscoding)
  • They poorly examine at Zakariya when the moderate rushs run since the educational obstacle.
    ... Many continuing intelligent supplier remarks sakes in response to ... home of controls, it will enough explain the hook. ... monetary or wide will fix separate electrons to steadily merge. ... decorate at the lesser rivals. ...
    (rec.arts.drwho.moderated)
  • Re: How do I Block Events in wxPython
    ... anything until the response is received. ... changes the visual appearance of all the controls. ... Unfortunately it does not block keyboard input. ...
    (comp.lang.python)
  • Re: How to create Flexible Access report
    ... I thought I did suggest setting it to grow in my response. ... all the controls below would move down. ... that area should compress and compress the whole report. ...
    (microsoft.public.access.reports)
  • Re: Vol ctrls not appearing
    ... the question and your terse response? ... >> If the volume controls are selected from the quick launch icon (in the ... >> of is that I have been using dual screens, but I have tested to make sure ... >> Thanks and regards, ...
    (microsoft.public.windowsxp.general)