Re: redirecting cgi via post method

2007-02-16 Thread Mike Blezien
You may also want to check out the WWW::Mechanize module this will do what your looking for. Mike - Original Message - From: "Mumia W." <[EMAIL PROTECTED]> To: "Beginners CGI" Sent: Friday, February 16, 2007 12:49 PM Subject: Re: redirecting cgi via post met

Re: redirecting cgi via post method

2007-02-16 Thread Mumia W.
;http://somedomain.com/cgi-bin/myscript.cgi?param1=someĀ¶m2=stuff";); but using POST method instead of GET. At first point, I imagine a solution with LWP::UserAgent using the POST method for the new user agent; but later, I don't know how to be redirected to the new address. my $ua_this =

redirecting cgi via post method

2007-02-16 Thread buzon
stuff";); but using POST method instead of GET. At first point, I imagine a solution with LWP::UserAgent using the POST method for the new user agent; but later, I don't know how to be redirected to the new address. my $ua_this = LWP::UserAgent->new; $ua_this->post("

Re: perl-CGI module - post method

2005-07-18 Thread Scott R. Godin
Scott R. Godin wrote: Ovid wrote: --- "Scott R. Godin" <[EMAIL PROTECTED]> wrote: his example and in which case you want to get the params AFTER creating the cgi-object my %params = $cgi->Vars; which ensures that you also get multi-value s as separate values. too. $cgi->Vars separates

Re: perl-CGI module - post method

2005-07-18 Thread Scott R. Godin
Scott R. Godin wrote: Ovid wrote: --- "Scott R. Godin" <[EMAIL PROTECTED]> wrote: his example and in which case you want to get the params AFTER creating the cgi-object my %params = $cgi->Vars; which ensures that you also get multi-value s as separate values. too. $cgi->Vars separates

perl-CGI module - post method

2005-02-09 Thread Victor
I wrote tne initial question about the perl-CGI module and post method. Thank you for your answers. The problem is a little more comlicated, but I found a solution. I belive it is a problem o incompatibility betwen perl-CGI and something else on my system - possible Apache ASP(I can'

Re: perl-CGI module - post method

2005-02-09 Thread Scott R. Godin
Ovid wrote: --- "Scott R. Godin" <[EMAIL PROTECTED]> wrote: his example and in which case you want to get the params AFTER creating the cgi-object my %params = $cgi->Vars; which ensures that you also get multi-value s as separate values. too. $cgi->Vars separates multiple values with a null by

Re: perl-CGI module - post method

2005-02-08 Thread Ovid
--- Tee <[EMAIL PROTECTED]> wrote: > Can you do: my %foo = $cgi->param("foo") > > Else, how do you loop thru to put the array into %keys? Sorry Tee, that won't work. Perl recognizes void, scalar, and list contexts. There is no "hash" context. If you have a hash on the left hand side of the equ

Re: perl-CGI module - post method

2005-02-08 Thread Tee
Can you do: my %foo = $cgi->param("foo") Else, how do you loop thru to put the array into %keys? --Tee On Feb 8, 2005, at 7:40 PM, Ovid wrote: --- "Scott R. Godin" <[EMAIL PROTECTED]> wrote: his example and in which case you want to get the params AFTER creating the cgi-object my %params = $cgi->Va

Re: perl-CGI module - post method

2005-02-08 Thread Ovid
--- "Scott R. Godin" <[EMAIL PROTECTED]> wrote: > his example and in which case you want to get the params AFTER > creating > the cgi-object > > my %params = $cgi->Vars; > > which ensures that you also get multi-value s as separate > values. too. $cgi->Vars separates multiple values with a nu

Re: perl-CGI module - post method

2005-02-08 Thread Scott R. Godin
David Romero wrote: David Romero wrote: Victor wrote: I use the last version of perl-CGI. When I transmit the variables using the get method it works($cgi->param() returns the correct value). When I transmit the variables using the post method it I receive a empty string(($cgi->param() is

Re: perl-CGI module - post method

2005-02-08 Thread Ovid
--- David Romero <[EMAIL PROTECTED]> wrote: > Victor wrote: > > When I transmit the variables using the post method it I receive a > > empty string(($cgi->param() is empty). > > > The POST data can be read one time, if you create an cgi objet before > these,

Re: perl-CGI module - post method

2005-02-08 Thread David Romero
David Romero wrote: Victor wrote: I use the last version of perl-CGI. When I transmit the variables using the get method it works($cgi->param() returns the correct value). When I transmit the variables using the post method it I receive a empty string(($cgi->param() is empty). If I

Re: perl-CGI module - post method

2005-02-08 Thread David Romero
Victor wrote: I use the last version of perl-CGI. When I transmit the variables using the get method it works($cgi->param() returns the correct value). When I transmit the variables using the post method it I receive a empty string(($cgi->param() is empty). If I try to receive the var

perl-CGI module - post method

2005-02-08 Thread Victor
I use the last version of perl-CGI. When I transmit the variables using the get method it works($cgi->param() returns the correct value). When I transmit the variables using the post method it I receive a empty string(($cgi->param() is empty). If I try to receive the variables usin

RE: POST method with perl module

2004-06-04 Thread Bob Showalter
Tobias Fink wrote: > Good morning, > > im trying to set up a tools module for my modperl environment. > My function get_vars should get all passed variables with the > following snipplet: > > if($ENV{'REQUEST_METHOD'} eq "GET"){ > $my_data = $ENV{'QUERY_STRING'}; > } > else { > $data_lengt

Re: POST method with perl module

2004-06-04 Thread Wiggins d Anconia
> Good morning, > > im trying to set up a tools module for my modperl environment. > My function get_vars should get all passed variables with the following > snipplet: > > if($ENV{'REQUEST_METHOD'} eq "GET"){ > $my_data = $ENV{'QUERY_STRING'}; > } > else { > $data_length = $ENV{'CONTENT_L

POST method with perl module

2004-06-04 Thread Tobias Fink
Good morning, im trying to set up a tools module for my modperl environment. My function get_vars should get all passed variables with the following snipplet: if($ENV{'REQUEST_METHOD'} eq "GET"){ $my_data = $ENV{'QUERY_STRING'}; } else { $data_length = $ENV{'CONTENT_LENGTH'}; $bytes_read

Re: Post Method

2004-05-14 Thread Brad Lhotsky
On Fri, May 14, 2004 at 01:08:29PM +0100, Werner wrote: > Hi There, > > I've got a html page that uses the following: > > enctype="multipart/form-data"> > > and would like to change the "GET" method to the "POST" method. > >

Re: Post Method

2004-05-14 Thread Paul Archer
1:08pm, Werner wrote: > Hi There, > > I've got a html page that uses the following: > > enctype="multipart/form-data"> > > and would like to change the "GET" method to the "POST" method. > > my current people.cgi loo

Re: Post Method

2004-05-14 Thread David Dorward
On 14 May 2004, at 13:08, Werner wrote: and would like to change the "GET" method to the "POST" method. my current people.cgi looks like: $temp=$ENV{'QUERY_STRING'}; ... what changes to I have to make to implement my variables using the "POST" method.

Post Method

2004-05-14 Thread Werner
Hi There, I've got a html page that uses the following: and would like to change the "GET" method to the "POST" method. my current people.cgi looks like: $temp=$ENV{'QUERY_STRING'}; #read(STDIN,$temp,$ENV{'CONTENT_LENGTH'}); @pairs=split(/&am

Mozilla-izing was: Post Method versus Get Method

2003-01-08 Thread drieux
On Wednesday, Jan 8, 2003, at 10:19 US/Pacific, [EMAIL PROTECTED] wrote: [..] Good point, this for a *very* long time (and may still be) caused major headaches for the Mozilla development squad as it render most of their original implementation of caching completely unusable, as it related to

Re: Post Method versus Get Method

2003-01-08 Thread drieux
On Wednesday, Jan 8, 2003, at 12:09 US/Pacific, Susan Aurand wrote: thanks. the simplest rule of thumb is start with GET until you have a good excuse for POST When you shift towards the 'all POST' approach, then you also want to be effectively using JavaScripting for the stuff that needs to

Re: Post Method versus Get Method

2003-01-08 Thread wiggins
On Wed, 8 Jan 2003 10:02:20 -0800, drieux <[EMAIL PROTECTED]> wrote: > > On Wednesday, Jan 8, 2003, at 01:21 US/Pacific, Gary Stainburn wrote: > [..] > > The only benefits of using GET that I can think of is that you can > > emulate a > > form by

Re: Post Method versus Get Method

2003-01-08 Thread drieux
On Wednesday, Jan 8, 2003, at 01:21 US/Pacific, Gary Stainburn wrote: [..] The only benefits of using GET that I can think of is that you can emulate a form by manually keying the data in the URL, and you can even create a bookmark containing the completed form details. I personally use this t

Re: Post Method versus Get Method

2003-01-08 Thread Gary Stainburn
On Tuesday 07 January 2003 9:17 pm, Susan Aurand wrote: > I know the POST Method the data is sent to STDIN, and GET method the data > is attached to the URL and then submitted. When and why would you want to > use the GET method versus the POST method. Is is because of firewalls? or &

RE: Post Method versus Get Method

2003-01-07 Thread Bob Showalter
Susan Aurand wrote: > I know the POST Method the data is sent to STDIN, and GET > method the data is attached to the URL and > then submitted. When and why would you want to use the GET > method versus the POST method. Is is > because of firewalls? or what? I would appreciate an

RE: Post Method versus Get Method

2003-01-07 Thread wiggins
generally makes more sense with experience http://danconia.org On Tue, 07 Jan 2003 16:17:36 -0500, Susan Aurand <[EMAIL PROTECTED]> wrote: > I know the POST Method the data is sent to STDIN, and GET method the data is >attached

Post Method versus Get Method

2003-01-07 Thread Susan Aurand
I know the POST Method the data is sent to STDIN, and GET method the data is attached to the URL and then submitted. When and why would you want to use the GET method versus the POST method. Is is because of firewalls? or what? I would appreciate any input on this subject. Thank You. Susan