Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: LWP Redirection Problem

by davorg (Chancellor)
on Sep 02, 2002 at 11:06 UTC ( [id://194564]=note: print w/replies, xml ) Need Help??


in reply to Re: LWP Redirection Problem
in thread LWP Redirection Problem

Some alternatives to consider, though...
1. 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.

Sorry. not really an option. Many people (very sensibly) diable JavaScript.

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

As I understand it, a "Content-Base:" header will work just as well and will be easier to add. I'm looking at that option now.

--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://194564]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2025-03-26 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (68 votes). Check out past polls.

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.