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

Re^2: CGI index as text

by tachyon (Chancellor)
on Nov 24, 2004 at 07:08 UTC ( #410071=note: print w/replies, xml ) Need Help??

in reply to Re: CGI index as text
in thread CGI index as text

This is *extremely* unlikely to work. With a GET request and this redirect you will lose the QUERY_STRING. With POST it is even worse as it will almost certainly generate a 405 Method Not Allowed as you try to POST data to an HTML page.



Replies are listed 'Best First'.
Re^3: CGI index as text
by nedals (Deacon) on Nov 24, 2004 at 08:40 UTC

    The OP made this statement...
    The main index page is a CGI file, how can I get it to load?

    I understood this to mean that when initially accessing the site, the index page is a cgi script that needs to be accessed. There will be 'NO' QUERY_STRING or POST. This simply redirects the normal index page to the CGI script without the use of .htaccess (I also believe the .htaccess method is a better way to do it.)

    Please explain *extremely* unlikely to work

      Please explain *extremely* unlikely to work

      I did. Dynamic sites almost inevitably GET/POST back to their root - take PM for example. PS content="0;url...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://410071]
[moritz]: ... "so there is no need to do anything"
[LanX]: and the code is a bit of a mess
[LanX]: moritz, no ... jsut copy one line of my code
[moritz]: I'm still using the CB, because ambrus's #cbstream makes it bearable
[LanX]: ... the rest is loaded from a node
[holli]: the best course of action would be to transfer the data to something well tested. even if it isnt perl based
[moritz]: but even if I had all the time in the world, I wouldn't spend much on perlmonks
[LanX]: holli: LOL
[LanX]: moritz: why ? family?
[LanX]: or other language?

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (12)
As of 2017-11-20 19:21 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (291 votes). Check out past polls.