cgi reponse codes in -http mode

Started by aseph, September 16, 2008, 03:36:19 PM

Previous topic - Next topic

aseph

Id like to return a 204 from a cgi script

but it seems the newlisp http mode always sends

200 if the cgi is  successful.



What I am looking for is to be able to hit the cgi and have

it process, but no return no results and life the browser

stay in the same page.



I tried doing something like this



#! /bin/bash

echo "HTTP/1.0 204 No Response"

echo "Status: 204 No Response"



but no joy

do i need to use a command-event ?



thanks

Lutz

#1
Yes, you would have to use 'command-event' to fully customize the response header.

itistoday

#2
I also had this problem and did a lot of digging, see: http://www.alh.net/newlisp/phpbb/viewtopic.php?p=13835">http://www.alh.net/newlisp/phpbb/viewtopic.php?p=13835
Get your Objective newLISP groove on.

Lutz

#3
In the next development version you can preset the status header to a different content.

itistoday

#4
Quote from: "Lutz"In the next development version you can preset the status header to a different content.


Thank you!  This will make testing websites locally so much easier! :-)
Get your Objective newLISP groove on.