Re: Problem with method set_redirection_header

Gerd Stolpmann <[email protected]> Sun, 13 Jan 2008 15:08:26 +0100
Newsgroups gmane.comp.lang.ocaml.lib.net.devel
Message-ID <[email protected]>
Am Samstag, den 12.01.2008, 16:40 +0100 schrieb Alessandro Strada:
> Hi,
> 
> I have a problem when using method set_redirection_header of cgi. When I
> invoke it in a page served by nethttpd (through netplex), I get an empty
> page response. Using other connectors (fcgi, ajp, etc.), the method
> works correctly. I also have the same behavior, using set_header to set
> "Location" HTTP header directly. But using set_output_header_field
> method of cgi_environment (I inlined set_redirection_header
> implementation found in netcgi2 source), I get correctly redirected to
> the target page. What am I missing?
> 
> Attached there is a modified version of the nethttp demo to reproduce
> this problem. I am currently using ocamlnet 2.2.8.1 and OCaml 3.10.0,
> packaged in Debian lenny.
> 
> Thanks in advance (and thanks to all the authors of this excellent
> library).

You found a bug in the Netcgi1_compat module. The [fields] argument is
completely deleted there.

This will be fixed in the next released version. As you already found a
workaround this is ok, yes?

Gerd
-- 
------------------------------------------------------------
Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany 
[email protected]          http://www.gerd-stolpmann.de
Phone: +49-6151-153855                  Fax: +49-6151-997714
------------------------------------------------------------



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace