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;
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
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..
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..
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
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
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.
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
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).
>
- 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.
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
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
> 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
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/
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
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
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
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
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
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]
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
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]>
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
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 "";
--- 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
&
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
> 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
[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 -
> -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
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
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
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
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
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
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
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
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
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
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]
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
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
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
> -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
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
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
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 -
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
;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.
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
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=>"
- 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
51 matches
Mail list logo