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

Re: LWP Redirection Problem

by Arien (Pilgrim)
on Sep 02, 2002 at 11:02 UTC ( [id://194563]=note: print w/replies, xml ) Need Help??


in reply to LWP Redirection Problem

There are two options:

  1. Stick a CGI in between (as you described) and use <base href="$FOO"> or replace any relative URLs in the response from the remote server with absolute URLs. Your client-side problem remains: the URL shown will be that of the CGI in between.
  2. Do the "form fixing" on the client-side and submit directly to the remote server. You now have a client-side scripting problem.

You can in theory redirect a POST request but IIRC most browsers will do a GET on the new resource. Also, were it to work, you'd still be at square one: you'd be submitting the same data you were submitting before, which was not suitable for consumption by the remote CGI (which is where it's now being sent).

— Arien

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 19:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found