On 15/01/2010 15:27, kenk...@yahoo.com wrote:
Ignacio Burgue?o<ignaciob at inconcertcc.com>   wrote:
It seems you have an .lp that redirects to a .lua
Why don't you access the .lua script directly? That way you can control
exactly what is emitted by cgilua

I actually had an .lp that accessed a lua library that emitted the binary data.
The problem was there's no way in cgilua to suppress headers that it's adding
(I guess no one tested the case where you download a binary file to a web 
browser?)-:

Yes, what I did eventually was redirect from the .lp to the cgi-bin lua script
(after using the web browser to store the hostname because the SERVER_NAME 
variable
that was always 127.0.0.1 which broke cgilua.redirect since it kept redirecting 
the
web browser to that IP).

  ken

I see. What I suggested was that you don't need to access an .lp and redirect to a .lua script. You need to access the .lua script directly. CGILua, when rendering a LP page will always add some headers (content-type, etc). That's what Lua scripts are for. You're in total control.

Regarding the SERVER_NAME being 127.0.0.1, could you post the full url you're requesting ? i.e. http://example.com:port/path/to/resource

Regards,
Ignacio



_______________________________________________
Kepler-Project mailing list
Kepler-Project@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

Reply via email to