> 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
Are you using POST in the form by any chance? In which case before you
redirect you have to turn that into a GET:
if ($r->method eq 'POST') {
$r->method('GET');
$r->method_number(M_GET);
$r->headers_in->unset('Content-Length');
}
--
Eric