Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Location redirect

by himik (Acolyte)
on Nov 02, 2012 at 09:35 UTC ( [id://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 (Cardinal) 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

    himik,

    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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-24 23:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found