in reply to Redirection and Post parameters in Perl

Back up a step and tell us what you are trying to do (at the human concepts level, not the low-level mechanics of implementation).

I can easily think of at least two different things that satisfy your specifications above - but without knowing what you are really trying to do, it is a waste of my time to iterate "try this" suggestions as you gradually reveal the real goal and its corresponding restrictions on acceptable solutions.

  • Comment on Re: Redirection and Post parameters in Perl

Replies are listed 'Best First'.
Re^2: Redirection and Post parameters in Perl
by crabbie_upk (Initiate) on Oct 27, 2005 at 06:11 UTC
    Hi All, Thanks for your response. Let me try to make my request clear again. The language I am using is Perl. Task is to pass the some confidential information from one domain A to another domain B when user click on a link hosted on domain A. Please note that the domain A and domain be are two different sites hosted on different servers which apart geographically. While doing this I can't use GET/POST method as the client side users can capture the information being passed which I don't want. Any suggestion on this task is really appreciated. Crebbie_upk.

      You could proxy the request: take the user's request to site A, have your script add the "secret" parameters and perform the query to sit B directly (via one of the LWP modules for example). Then display the results back to the client (you may have to sanitize the output before displaying, to make sure none of the confidential information is returned in the page).

      A word of warning though, if your information is indeed confidential you should not be posting it to an http address (as your OP indicates), the communication should at least be SSL-secured.