Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Location redirect

by himik (Acolyte)
on Nov 02, 2012 at 09:35 UTC ( #1001934=perlquestion: print w/replies, xml ) Need Help??
himik has asked for the wisdom of the Perl Monks concerning the following question:

Hello monks! I have form with user and password. I want in some conditions to redirect this person to other page. In this other page there is another form with user and password. I want to fill them and submit the form. I try to find something, but without any luck for now

Replies are listed 'Best First'.
Re: Location redirect
by choroba (Bishop) on Nov 02, 2012 at 09:44 UTC
    What technology are you using? CGI, Dancer, Catalyst, Plack, PHP...
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
      I use CGI. Sorry for not mentioning it.
        Have you read GENERATING_A_REDIRECTION_HEADER in CGI? What about that failed to work for you? Do you have some code in particular that has failed to function? If so, post it so we can be more specific. See How do I post a question effectively?.

        #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

Re: Location redirect
by flexvault (Monsignor) on Nov 02, 2012 at 14:26 UTC


    You don't mention what web server you're working with. But if it's apache 2.x, I've found that the Perl scripts that worked with apache 1.x don't work without some modification. Apparently for redirects to work, additional information is needed in the headers that let's the server know that a redirect is possible. This was as a result of a RFC requirement.

    This may not be your problem and I'm not an expert on web servers, but I know I had to add some header information to get the re-directs to work with 2.x.

    Good Luck!

    "Well done is better than well said." - Benjamin Franklin

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1001934]
Approved by Corion
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2018-06-18 12:13 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (109 votes). Check out past polls.