On Thu, Aug 20, 2009 at 7:54 AM, Mark Copper<mcop...@titaninterface.com> wrote:
> Hi,
>
> I have a Mason dhandler that generates an HTML page containing a form.
> The action of the form is to get the same page that is displayed.  If the
> URL contains a certain parameter, an internal redirect is issued:

Can you provide what versions of mod_perl, apache, and perl you are using?

Have you asked the Mason list also?  Is there a reason why you aren't
using an external redirect here?  Seems like you might want that
instead of the internal_redirect, since you are redirecting to a
different url.


>
> URL: mydomain.com/information/dhandler/variable.html?modification=update
>
> <%args>
> $modification=>undef
> </%args>
> <html>
> ...
> <form>
> ...
> <input type="submit" value="update" name="modification"/>
> ...
> </form>
> </html>
> <init>
> ...
> if ($modification eq "update"){
>   my $location = "/data_update?session=$session&" . $r->args;
>   $r->internal_redirect($location);
> return OK;
> ...
> </init>
>
> A Perl handler processes requests to /data_update and issues a new
> internal redirect to a third page:
>
> <Location /data_update>
>   SetHandler perl-script
>   PerlHandler MyApp::DataUpdate
>   DefaultType text/html
> </Location>
>
> The third page (usually) displays correctly but there is trouble
> beneath. Following any link on the third page results in a display of
> gibberish--binary data except for the HTTP header buried midway through.
> This third page never causes any trouble except when approached through
> this internal redirect.
>
>
> I've probably left out all the information you need to know in order to
> suggest a solution.  So I guess that's my question; where do I need to
> look more carefully?
>
> Sorry if *this* page is gibberish.  Thanks for reading.
>
> Mark
>

Reply via email to