Re: How to send arguments with a redirect?

2009-01-15 Thread Gunnar Hjalmarsson
evil...@gmail.com wrote: Hi I have the following two scripts test.cgi & displaytest.cgi test.cgi is intended to redirect itself to displaytest.cgi and send some arguments. The problem I am having is that I can never get the arguments successfully sent! Try this in test.cgi: use CGI;

How to send arguments with a redirect?

2009-01-15 Thread evil...@gmail.com
Hi I have the following two scripts test.cgi & displaytest.cgi test.cgi is intended to redirect itself to displaytest.cgi and send some arguments. The problem I am having is that I can never get the arguments successfully sent! Redirect without arguments works fine - but the various approa

Re: Redirect Print

2007-05-30 Thread Paul Lalli
On May 30, 11:56 am, [EMAIL PROTECTED] (Khalid Naji) wrote: > is there any way to mask a printing, when I call a Function using the > Command "print" and without to modify this Function: > > Like: > > My ($Name) = &get_name(12345); > > Sub get_name > { > $id = @_; > ... > Print "Blalalalalalalbla..

Re: Redirect Print

2007-05-30 Thread Sean Davis
On Wednesday 30 May 2007 11:56, Naji, Khalid wrote: > Hi, > > is there any way to mask a printing, when I call a Function using the > Command "print" and without to modify this Function: > > Like: > > My ($Name) = &get_name(12345); > > Sub get_name > { > $id = @_; > ... > Print "Blalalalalalalbla..

Redirect Print

2007-05-30 Thread Naji, Khalid
Hi, is there any way to mask a printing, when I call a Function using the Command "print" and without to modify this Function: Like: My ($Name) = &get_name(12345); Sub get_name { $id = @_; ... Print "Blalalalalalalbla...\n"; Return (Name); } Thanks, KN -- To unsubscribe, e-mail: [EMAIL PRO

Re: redirect doesn't

2006-08-08 Thread Mumia W.
On 08/07/2006 07:43 PM, Mary Anderson wrote: Hi all, I would like to create an exit button which, when pressed, triggers code to clean up my application and then go to the index.html page. It is my understanding that the redirect function will take me there. Here is the key piece of

Re: redirect doesn't

2006-08-07 Thread Greg Jetter
On Monday August 7 2006 4:43 pm, Mary Anderson wrote: > Hi all, > >I would like to create an exit button which, when pressed, triggers > code to clean up my application and then go to the index.html page. It is > my understanding that the redirect function will take me there.

redirect doesn't

2006-08-07 Thread Mary Anderson
Hi all, I would like to create an exit button which, when pressed, triggers code to clean up my application and then go to the index.html page. It is my understanding that the redirect function will take me there. Here is the key piece of code: print redirect (-location

Re: redirect - CGI

2006-04-11 Thread David Dorward
On Tue, Apr 11, 2006 at 10:05:15AM -0300, Augusto Flavio wrote: > #!/usr/bin/perl > use CGI qw/:standard/; Seems to be missing a use strict and use warnings here. > print "Content-type: text/html\n\n"; You end you HTTP headers here (by printing two new lines). >

Re: redirect - CGI

2006-04-11 Thread Mike Blezien
- Original Message - From: "Augusto Flavio" <[EMAIL PROTECTED]> To: "'Perl Beginners - CGI List'" Sent: Tuesday, April 11, 2006 8:05 AM Subject: redirect - CGI Hi, I'm looking for a method to redirect the url of browser to elsewhere.

redirect - CGI

2006-04-11 Thread Augusto Flavio
Hi, I'm looking for a method to redirect the url of browser to elsewhere. What i do was check the documentation of CGI.pm: "Sometimes you don't want to produce a document yourself, but simply redirect the browser elsewhere, perhaps choosing a URL based on the time of day or t

Re: Redirect using .htaccess or ?? ( kinda [OT] )

2004-04-08 Thread B McKee
Begin forwarded message: B McKee wrote: Yeah, ok, this isn't completely on topic. Please humour me (or at least flame me politely). I need to redirect people to a perl-CGI script I have written a perl script that generates a series of active web pages. It's in the cgi-bin and

Re: Redirect using .htaccess or ?? ( kinda [OT] )

2004-04-08 Thread Wiggins d Anconia
> On 07 Apr 2004 22:54:17 -0400, [EMAIL PROTECTED] (B McKee) wrote: > > >Yeah, ok, this isn't completely on topic. Please humour me (or at least > >flame me politely). I need to redirect people to a perl-CGI script > > > >I have written a perl script th

Re: Redirect using .htaccess or ?? ( kinda [OT] )

2004-04-07 Thread WC -Sx- Jones
Wiggins d'Anconia wrote: RewriteEngine on RewriteRule ^/$ /cgi-bin/index [R,L] This is also possible: RedirectMatch permanent /(.*) http://www.example.com/cgi-bin/index.pl (It's just another way...) I would always use mod_rewrite myself... -- http://www.usenix.org/

Re: Redirect using .htaccess or ?? ( kinda [OT] )

2004-04-07 Thread WC -Sx- Jones
B McKee wrote: I thought simply putting Redirect permanent index.* /cgi-bin/index.pl [ without mod_rewrite ] Redirect permanent / http://www.example.com/cgi-bin/index.pl But mod_rewrite would be best - as the OP stated... Over all this is a bad Idea... after a few more months of CGI

Re: Redirect using .htaccess or ?? ( kinda [OT] )

2004-04-07 Thread Wiggins d'Anconia
B McKee wrote: Yeah, ok, this isn't completely on topic. Please humour me (or at least flame me politely). I need to redirect people to a perl-CGI script I have written a perl script that generates a series of active web pages. It's in the cgi-bin and works fine when accessed di

Redirect using .htaccess or ?? ( kinda [OT] )

2004-04-07 Thread B McKee
Yeah, ok, this isn't completely on topic. Please humour me (or at least flame me politely). I need to redirect people to a perl-CGI script I have written a perl script that generates a series of active web pages. It's in the cgi-bin and works fine when accessed directly

How to redirect to a URL read from an XML file?

2004-02-20 Thread TammyKirk
I want a perl cgi script to read a URL from an XML file and then redirect to it. The use statements I have are: use CGI;# For http interacton use XML::XPath; use XML::XPath::XMLParser; print $q->redirect($homepage); works if I have files the $homep

Re: html redirect using CGI.pm

2002-12-09 Thread Octavian Rasnita
gt; To: "perl cgi" <[EMAIL PROTECTED]> Sent: Monday, December 09, 2002 11:44 PM Subject: RE: html redirect using CGI.pm print $query->redirect(-uri=>'http://somewhere.else/in/movie/land', -nph=>1); I found the example, but I dont

Re: Re: html redirect using CGI.pm

2002-12-09 Thread Mark Bergeron
ss"<[EMAIL PROTECTED]>, "perl cgi"<[EMAIL PROTECTED]> Date: Mon Dec 09 13:31:49 PST 2002 Subject: Re: html redirect using CGI.pm >You might want to just use redirect(), check perldoc CGI > >- >Scot Robnett >inSite Internet Solutions >[EMAIL PROTECTED]

RE: html redirect using CGI.pm

2002-12-09 Thread Scot Robnett
First thing, if you are generating a redirect, then you can print the content-type header within the same space using an array ref like below. Your method looks like it should work, although I think you might want to put the time and the URL within the "content" space. With my host I

RE: html redirect using CGI.pm

2002-12-09 Thread Admin-Stress
print $query->redirect(-uri=>'http://somewhere.else/in/movie/land', -nph=>1); I found the example, but I dont know how to put the 'seconds', like will be redirected after 5 seconds. --- Scot Robnett <[EMAIL PROTECTED]>

RE: html redirect using CGI.pm

2002-12-09 Thread Scot Robnett
You might want to just use redirect(), check perldoc CGI - Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] -Original Message- From: Admin-Stress [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 2:42 PM To: perl cgi Subject: html redirect using CGI.pm Hi, Could

html redirect using CGI.pm

2002-12-09 Thread Admin-Stress
Hi, Could someone check my code below? I need to redirect to a html using CGI.pm perl module. But when I executed, I got blank page. If I commented out $cgi->start_html ... it's working fine, but no redirection. $cgi = new CGI; sub Error { my ($msg) = @_; print "";

RE: Redirect and cookies

2002-09-02 Thread Ovid
--- Alex Agerholm <[EMAIL PROTECTED]> wrote: > Hi Curtis, > > Thanks for your help, I am actually on IIS so you have saved me a lot of > troubles. > Do you know how to work around this ? > >From the microsoft article below it seems like running in nph mode should &

RE: Redirect and cookies

2002-08-31 Thread Alex Agerholm
Hi Curtis, Thanks for your help, I am actually on IIS so you have saved me a lot of troubles. Do you know how to work around this ? >From the microsoft article below it seems like running in nph mode should solve it but redirect(-uri => xxx.cgi, -cookie => $cookie, -nph => 1) does

Re: Redirect and cookies

2002-08-31 Thread Ovid
> I have made a login system and when the user has logged in correctly I set a > cookie and redirects the user to the first page. > But on all pages (including the first one) I make a check to see if the user > is logged in based on the cookie. > > When I redirect from the

Re: Redirect and cookies

2002-08-31 Thread Gfoo
[EMAIL PROTECTED] (Alex Agerholm) wrote in [EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: > ... > When I redirect from the login page to the first page I therefore need > to give the cookie along like: redirect( -uri=>xxx.cgi, > -cookie=>$cookie); BUT IT DOES NOT WORK -

RE: Redirect and cookies

2002-08-30 Thread Bob Showalter
> -Original Message- > From: Alex Agerholm [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 30, 2002 5:01 AM > To: [EMAIL PROTECTED] > Subject: Redirect and cookies > > > Hi all, > > I have a problem with redirect. > I have made a login syste

Re: Redirect and cookies

2002-08-30 Thread zentara
On Fri, 30 Aug 2002 11:01:08 +0200, [EMAIL PROTECTED] (Alex Agerholm) wrote: >Hi all, > >I have a problem with redirect. >I have made a login system and when the user has logged in correctly I set a >cookie and redirects the user to the first page. >But on all pages (includin

Redirect and cookies

2002-08-30 Thread Alex Agerholm
Hi all, I have a problem with redirect. I have made a login system and when the user has logged in correctly I set a cookie and redirects the user to the first page. But on all pages (including the first one) I make a check to see if the user is logged in based on the cookie. When I redirect

Taint mode and redirect with cookie

2002-08-29 Thread Alex Agerholm
Hi, I have 2 questions: 1) I am developing some Perl code under Windows 2000. If I in the first line writes !c:\perl\bin\perl -wT I get the error "too late for -T option" what does that mean 2) when I make a print redirect(-uri=>xxx.cgi, -cookie=>$cookie); then my xxx.cgi scr

Re: browser redirect

2002-08-21 Thread zentara
On Wed, 21 Aug 2002 17:08:18 +0800, [EMAIL PROTECTED] (Connie Chan) wrote: >#! /usr/local/bin/perl >use strict; > >my $version = &do_sth_detect_browser_ver(); >my $page = 'surly.cgi'; >if ($version <= 4) { $page = 'tipsy.cgi' } > >print "Content-type: text/html\n"; You shouldn't print the regular

Re: browser redirect

2002-08-21 Thread Connie Chan
Emm... I think this mail would better go to CGI list ... [...] > > > #! /usr/local/bin/perl > > print "Content-type: text/html\n\n"; > > if ($ENV{'HTTP_USER_AGENT'} =~ /Mozilla 4/ > and not $ENV{'HTTP_USER_AGENT'} =~ /compatible/i ) { > print ; > } else { > print ; > } > > How a

[ADMIN - REDIRECT] Re: CGI script problem

2002-08-19 Thread Kevin Meltzer
This message is being redirected to the beginners-cgi list. Please answer on that list, and to the original poster. Thanks. Cheers, Kevin On Mon, Aug 19, 2002 at 04:11:14PM +0100, Matt Wetherill ([EMAIL PROTECTED]) said something similar to: > Hi list, > > I'm just trying to get started with c

RE: redirect()

2002-07-14 Thread Scot Robnett
Do you think the clients browser goes and Posts the form again to the new URL? No, I don't think that is what's happening. Once you post the info, the script is processing it and doing the redirect, but I don't think it is posting the entire str

Re: redirect()

2002-07-14 Thread Jonathan
If I print the header() first, then I end up with the 'redirect()' code being printed to the browser. So this is not what I have been doing. But I think I might have a clue, tell me if I am right. The CGI is being called form an HTML Form that uses Post, After processing the info, I us

RE: redirect()

2002-07-14 Thread Scot Robnett
A common mistake is to print a header and then do a redirect, which slows the process down because essentially you have a script and a page competing to generate a header. When using redirect(), do not do this: #!/usr/bin/perl use CGI; my $q = new CGI; print $q

redirect()

2002-07-14 Thread Jonathan
After complaints that my CGI takes too long, I traced it down to the redirect() function. Why does it take so long? Is there an alternative? Jonathan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Question about redirect

2002-06-24 Thread perl-dvd
D]> Sent: Saturday, June 22, 2002 6:59 PM Subject: Question about redirect I have a really simple question I hope. The redirect doesn't work. It doesn't work if I print it or not. Why is it not working? Any help will be much appreciated. Thank you, Erik #!/usr/bin/perl -w print

Re: Question about redirect

2002-06-23 Thread Marty Landman
At 07:59 PM 6/22/02 -0500, you wrote: >I have a really simple question I hope. The redirect doesn't work. It >doesn't work if I print it or not. Why is it not working? Any help will be >much appreciated. Erik, here is a complete program to redirect to a webpage - one I wro

Question about redirect

2002-06-22 Thread Erik Riggenbach
I have a really simple question I hope. The redirect doesn't work. It doesn't work if I print it or not. Why is it not working? Any help will be much appreciated. Thank you, Erik #!/usr/bin/perl -w print "Content-type: text/html\n\n"; use CGI qw(:standard); use CGI::Car

RE: more redirect script problems

2002-06-18 Thread Bob Showalter
> -Original Message- > From: Hughes, Andrew [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 18, 2002 10:02 AM > To: [EMAIL PROTECTED] > Subject: more redirect script problems > > > I am still trying to create this redirect script that is > called when the

more redirect script problems

2002-06-18 Thread Hughes, Andrew
I am still trying to create this redirect script that is called when the referring page refreshes after 0 seconds (with a meta tag) to the redirect.pl. I am having a couple of problems. The first is that when it refreshes the scripted does not recognize the page as the referring page. Each time

redirect script problems

2002-06-16 Thread Hughes, Andrew
I am trying to write a script that will send a user to a certain webpage based on the refering url. I am embedding it in a .shtml page as an include. There are 3 urls that I will redirect to based on the refering url. The way it is now, if I type in the url "http://www.mysite.com/atl

[ADMIN REDIRECT] Re: Regular Expressions

2002-02-20 Thread Kevin Meltzer
Hello, I am redirecting this question from beginners-cgi to beginners. Please respond to the original poster ([EMAIL PROTECTED]) and the beginners list. Please remember that non-CGI related questions should not be send to beginners-cgi. Thanks. Cheers, Kevin On Wed, Feb 20, 2002 at 01:13:55PM -

Re: redirect script failling

2002-02-13 Thread Briac Pilpré
On Wed, 13 Feb 2002 at 23:48 GMT, David Gilden wrote: > Can someone point why the following is not working? According to the CGI.pm doc (perldoc CGI): The redirect() function redirects the browser to a different URL. If you use redirection like this, you should not print out a hea

redirect script failling

2002-02-13 Thread David Gilden
;continue to next section") { print redirect('http://www.kayaking.net/pages/release_risk.html'); exit; } elsif ($which_button eq "continue to last section") { print redirect('http://www.

redirect to an URL instead of current perl action (fwd)

2001-12-29 Thread KeN ClarK
e cgi-directories and redirect, or should i call another cgi script that does that for me? I also tried using my $temphtml = ... =>"../../html/quantdirect.php") . #where i also had a copy of the php file. this is probably blatantly obvious to those out there. but not me, oh not me

redirect to an URL instead of current perl action

2001-12-29 Thread KeN ClarK
I use openwebmail for access to my home network, as do a few others. In the openwebmail-main.pl file, the logout function will redirect users BACK to the login page. I want to edit that to http://some.where.else. Is this as simple as changing my $temphtml = startform(-action=>"

Fwd: [perlguy@perlguy.com: [REDIRECT] Re: Perl and secure CGI]

2001-10-09 Thread Kevin Meltzer
- Forwarded message from Kevin Meltzer <[EMAIL PROTECTED]> - I am redirecting this to the cgi-beginners list, which is more appropriate. Please send responses to the sender (Edd Dawson <[EMAIL PROTECTED]>) and the cgi-beginners list. Thanks. Cheers, Kevin On Tue, Oct 09, 2001 at 04:29:0