in reply to LWP Redirection Problem
It seems to me that what I really want is a "redirect", but you can't redirect a POST request (or can you?)
According to the spec it's possible, but in practice I've found the opposite to be true (see the caveat in the aforementioned link); meaning you're out of luck unless the external CGI can be coaxed into accepting GET requests.
Some alternatives to consider, though...
- The browser shows the URL of my progrma rather than the external CGI program.
Skip a Perl intermediary altogether, and use JavaScript to do your param munging with an onClick/onSubmit.
- The relative URLs within the displayed content are all broken as the browser is interpreting them as relative to my program.
Have your script include a <base href="http://url.to/the/external/CGI" /> in it's output so that relative URLs are correctly interpreted by thr browser.
--k.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: LWP Redirection Problem
by davorg (Chancellor) on Sep 02, 2002 at 11:06 UTC |