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
;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 =
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("
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
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
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'
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
--- 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
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
--- "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
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
--- 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,
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
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
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
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
> 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
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
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.
>
>
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
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.
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
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
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
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
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
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
&
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
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
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
30 matches
Mail list logo