Re: Redirecting to another url with parameters using post method

2007-11-05 Thread stec77
> > I need to send the parameters via POST method without any confirmation > > from the users... > > 2) return HTML containing a hidden form and submit it by JavaScript. > Of course this will not work if the user disables JavaScript. > > HTH, Jenda Not strictly Perl but I think this site does what

Re: Redirecting to another url with parameters using post method

2007-09-08 Thread Jenda Krynicky
From: Praveena Vittal <[EMAIL PROTECTED]> > Can you please tell me the reason for the same? "Can you please tell me the reason for THAT?" > I need to send the parameters via POST method without any confirmation > from the users... You can't ! You can't force the browser to send a POST request

Re: Redirecting to another url with parameters using post method

2007-08-28 Thread Gunnar Hjalmarsson
Praveena Vittal wrote: Gunnar Hjalmarsson wrote: Praveena Vittal wrote: Gunnar Hjalmarsson wrote, On 08/27/2007 07:36 PM: Praveena Vittal wrote: #!/usr/bin/perl use CGI; my $query =new CGI; print $query->redirect('http://google.com'); When i run this

Re: Redirecting to another url with parameters using post method

2007-08-28 Thread Dr.Ruud
Praveena Vittal schreef: > Gunnar Hjalmarsson: >> If >> you want us to help you debug your code, you need to post a short but >> _complete_ program that exhibits the problem you are having. > > Please find the part of the code i used for redirection > > The function below is called when a button

Re: Redirecting to another url with parameters using post method

2007-08-28 Thread Praveena Vittal
Please find the part of the code i used for redirection The function below is called when a button is pressed in a cgi page sub do_reactivation() { return if validate_check("Re-Activation",$query->param); my $url = 'https://sustain-54.central/cgi-bin/sams3_portal/activation.cgi'; print $query-

Re: Redirecting to another url with parameters using post method

2007-08-28 Thread Gunnar Hjalmarsson
Praveena Vittal wrote: Gunnar Hjalmarsson wrote, On 08/27/2007 07:36 PM: Praveena Vittal wrote: #!/usr/bin/perl use CGI; my $query =new CGI; print $query->redirect('http://google.com'); When i run this code How do you run it? Is the script URL in the

Re: Redirecting to another url with parameters using post method

2007-08-27 Thread Praveena Vittal
Hi All, see my comments inline Gunnar Hjalmarsson wrote, On 08/27/2007 07:36 PM: Praveena Vittal wrote: #!/usr/bin/perl use CGI; my $query =new CGI; print $query->redirect('http://google.com'); When i run this code How do you run it? Is the scrip

Re: Redirecting to another url with parameters using post method

2007-08-27 Thread Gunnar Hjalmarsson
Praveena Vittal wrote: #!/usr/bin/perl use CGI; my $query =new CGI; print $query->redirect('http://google.com'); When i run this code How do you run it? Is the script URL in the action attribute when POSTing an HTML form? In that case, and if you want

Re: Redirecting to another url with parameters using post method

2007-08-27 Thread Praveena Vittal
Mumia W. wrote, On 08/27/2007 03:58 PM: On 08/27/2007 03:50 AM, Praveena Vittal wrote: hi All, Thanks for all your replies... Actually i tried the small program like below: #!/usr/bin/perl use CGI; my $query =new CGI; What other stuffs? If those ot

Re: Redirecting to another url with parameters using post method

2007-08-27 Thread Mumia W.
On 08/27/2007 03:50 AM, Praveena Vittal wrote: hi All, Thanks for all your replies... Actually i tried the small program like below: #!/usr/bin/perl use CGI; my $query =new CGI; What other stuffs? If those other stuffs output body text, it'll be too l

Re: Redirecting to another url with parameters using post method

2007-08-27 Thread Mumia W.
On 08/26/2007 07:47 PM, Gunnar Hjalmarsson wrote: [...] Btw, is this technique properly documented anywhere, or would it be a suitable addition to perlfaq9? It's not asked that frequently. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] htt

Re: Redirecting to another url with parameters using post method

2007-08-27 Thread Praveena Vittal
hi All, Thanks for all your replies... Actually i tried the small program like below: #!/usr/bin/perl use CGI; my $query =new CGI; print $query->redirect('http://google.com'); When i run this code i am getting a blank page with the following printed in

Re: Redirecting to another url with parameters using post method

2007-08-26 Thread Gunnar Hjalmarsson
yitzle wrote: On 8/26/07, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: Btw, is this technique properly documented anywhere, or would it be a suitable addition to perlfaq9? Its not a Perl technique. Its part of the HTTP specs. NAME perlfaq9 - Networking ($Revision: 1.15 $, $Date: 2003/01/31

Re: Redirecting to another url with parameters using post method

2007-08-26 Thread yitzle
On 8/26/07, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > Mumia W. wrote: snip > Btw, is this technique properly documented anywhere, or would it be a > suitable addition to perlfaq9? Its not a Perl technique. Its part of the HTTP specs. PS Why do my emails show up on the www.codecomments.com f

Re: Redirecting to another url with parameters using post method

2007-08-26 Thread Gunnar Hjalmarsson
Mumia W. wrote: Mumia W. wrote: On 08/25/2007 04:32 PM, Gunnar Hjalmarsson wrote: Jeff Pang wrote: 2007/8/25, Praveena Vittal <[EMAIL PROTECTED]>: I want to redirect to a different url with the parameters in the post method. Well,see 'perldoc CGI' and specially check for, param, redirect.

Re: Redirecting to another url with parameters using post method

2007-08-25 Thread Mumia W.
On 08/25/2007 07:39 PM, Gunnar Hjalmarsson wrote: Mumia W. wrote: On 08/25/2007 04:32 PM, Gunnar Hjalmarsson wrote: Jeff Pang wrote: 2007/8/25, Praveena Vittal <[EMAIL PROTECTED]>: I want to redirect to a different url with the parameters in the post method. Well,see 'perldoc CGI' and spec

Re: Redirecting to another url with parameters using post method

2007-08-25 Thread Gunnar Hjalmarsson
yitzle wrote: On 8/25/07, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: So I don't think that 307 is the proper status code for a redirect via a POST request. 307 sounds right. The user agent (ie usually the internet browser) will tell the user that there is a redirect, does the user want to p

Re: Redirecting to another url with parameters using post method

2007-08-25 Thread yitzle
On 8/25/07, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > >>> 2007/8/25, Praveena Vittal <[EMAIL PROTECTED]>: > I want to redirect to a different url with the parameters in the post > method. > This is the last para of that section: > "If the 307 status code is received in response to

Re: Redirecting to another url with parameters using post method

2007-08-25 Thread Gunnar Hjalmarsson
Mumia W. wrote: On 08/25/2007 04:32 PM, Gunnar Hjalmarsson wrote: Jeff Pang wrote: 2007/8/25, Praveena Vittal <[EMAIL PROTECTED]>: I want to redirect to a different url with the parameters in the post method. Well,see 'perldoc CGI' and specially check for, param, redirect. How do you comb

Re: Redirecting to another url with parameters using post method

2007-08-25 Thread Mumia W.
On 08/25/2007 04:32 PM, Gunnar Hjalmarsson wrote: Jeff Pang wrote: 2007/8/25, Praveena Vittal <[EMAIL PROTECTED]>: I want to redirect to a different url with the parameters in the post method. Well,see 'perldoc CGI' and specially check for, param, redirect. How do you combine a POST reques

Re: Redirecting to another url with parameters using post method

2007-08-25 Thread Gunnar Hjalmarsson
Jeff Pang wrote: 2007/8/25, Praveena Vittal <[EMAIL PROTECTED]>: I want to redirect to a different url with the parameters in the post method. Well,see 'perldoc CGI' and specially check for, param, redirect. How do you combine a POST request and a 'Location:' header (which is what CGI::red

Re: Redirecting to another url with parameters using post method

2007-08-25 Thread Jeff Pang
2007/8/25, Praveena Vittal <[EMAIL PROTECTED]>: > Hi , > > I want to redirect to a different url with the parameters in the post > method. > Well,see 'perldoc CGI' and specially check for, param, redirect. Good luck! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: