[Klone-users] help with klone cgi
Stefano Barbato
barbato at koanlogic.com
Sat Sep 12 05:30:58 EDT 2009
On 11/set/09, at 22:57, Mark Richards wrote:
> thomas fossati , On 9/11/2009 09:15:
>> Is the execution bit set in the invoked cgi ?
>> Is the interpreter in place (what if you execute the script using
>> the interpreter) ?
>> Do you perhaps edit your files in Windows (i.e. new line not the
>> UNIX way) ?
>>
>
> Thomas,
>
> All good questions.
>
> 1. Yes, binary is set 777. The binary is named "flash" and is in /
> www/../axis_cgi/admin (see config below)
> 2. There's no interpreter. The binary is executed in a shell. I
> looked at what Klone does and using execl() is fine.
> 3. Other files have proper (unix) line endings.
>
> I made a little progress. With the config below I can cause the
> script to at least kick off by entering it in the browser address
> bar. However klone, rather than executing it as a cgi, returns it
> to the client with a nice open/save dialog. (address = http://bla.bla.bla.bla:8087
> :/axis_cgi/admin/flash )
That's probably because the cgi does not send back the proper Content-
type header field (should be text/html for web pages). Browsers spawn
the save dialog for any content-type they cannot display inline and
for each unknown content-type.
Could you send us the verbatim response of the cgi (including the
response header)?
stefano
More information about the klone-users
mailing list