Sending response headers with eRuby

A

Alex Dunae

I have a little Ruby program that runs over HTTP via eRuby. I need to
be able to send custom HTTP status codes (and other headers) but it
seems that they're all set and flushed by the time my rhtml file is
processed.

I see this is possible by running a straight Ruby script with the CGI
library, but I'm not able to call scripts in /usr/bin (where Ruby is
stored) over the web on my shared host.

Is there any way to send headers with eRuby?

Thanks in advance,

Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top