Problem with method set_redirection_header

Alessandro Strada <[email protected]> Sat, 12 Jan 2008 16:40:47 +0100
Newsgroups gmane.comp.lang.ocaml.lib.net.devel
Message-ID <[email protected]>
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).

Cheers,

--
Alessandro

-------------------------------------------------------------------------
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

_______________________________________________
Ocamlnet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ocamlnet-devel
redirection.tar.gz (application/octet-stream, 2.4 KB) - not displayed