You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Bill McCabe <df...@mediaone.net> on 2000/04/08 19:18:25 UTC

internal_redirect

Hi All

I have a module that displays a selection of FORMs for the user to pick
from. The FORMs have TARGET='_BLANK'. The submitted form data is sent to a
different module which parses the data and uses 'open' to call an external
perl script to generate a file and returns the full disk path of the file
via STDOUT back to the module. The module then converts that pathname to a
local URI which it verifies using $r->lookup_uri($outfile_uri). The module
then calls

	$r->internal_redirect($outfile_uri);
	return OK;

The browser (Netscape 4.7) just spins until it times out with a messages
saying "document returned no data". If I paste the URI into a new browser
window, the generated file appears as expected.

If I set FORM ACTION=/cgi-bin/printenv, for example, the output appears in
a new browser window normally. I'm about to try it with IE and also without
the  TARGET='_BLANK', but I don't expect either of those two changes to
help. Does anyone have any suggestions as to which step in this process
might be dropping the ball?

Thanks in advance
Bill