On Friday, Nov 7, 2003, at 17:12 US/Pacific, Tobias Fink wrote:
[..]
but what i didnt want to do is something like this:
my $response =
$ua->get("http://search.cpan.org/
search?query=$query&query2=$query2etc");
because this only works for http-get.
Isnt it possible to create a header that works
post?
Greetings,
Tobias
- Original Message -
From: "Sara" <[EMAIL PROTECTED]>
To: "Tobias Fink" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, November 06, 2003 10:07 AM
Subject: Re: HTTP::Request
> #!/usr/bin/perl
> use CGI;
> us
sense to me. I can see what you were
trying to do, but that is way garbled.
IF you know what your query should be, then why not append it to
the base 'uri' that you have
if you will go back to
perldoc LWP::UserAgent
you will note that the more classical form, if you do not
want to do
uccess) {
my $server_response = $response->content;
print $server_response;
}
- Original Message -
From: "Tobias Fink" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 07, 2003 4:12 AM
Subject: HTTP::Request
> Hi,
>
> why
Tobias Fink wrote:
Hi,
why doesn't
my $ua = LWP::UserAgent->new;
my $res = $ua->request(GET 'http://www.google.de/search', q => 'asdasd');
if ($res->is_success) {
my $server_response = $res->content;
print $server_response;
}
print the html-source of http://www.google.de/search?q=asdasd ?
Hi,
why doesn't
my $ua = LWP::UserAgent->new;
my $res = $ua->request(GET 'http://www.google.de/search', q => 'asdasd');
if ($res->is_success) {
my $server_response = $res->content;
print $server_response;
}
print the html-source of http://www.google.de/search?q=asdasd ?
Regards,
Tobias
: 604.638.6020
Toll Free: 1.877.503.9870
http://www.pacificonline.com
-Original Message-
From: drieux [mailto:[EMAIL PROTECTED]]
Sent: February 18, 2003 10:02 AM
To: Scott Lutz
Cc: cgi cgi-list
Subject: Re: help with HTTP::Request for POST
On Tuesday, Feb 18, 2003, at 08:43 US/Pacific, Scott Lutz
On Tuesday, Feb 18, 2003, at 10:33 US/Pacific, Scott Lutz wrote:
[..]
Thanks for the input drieux!
All of the information that I have found has said that you can not
change the form action using IE, which is why I was led to the server
side method. I will try the javascript, to see how it works
ar/cgi-bin/parse.cgi
Any help with what might be missing would be great
Here is the script:
#!/usr/bin/perl -wT
use strict;
use HTTP::Request::Common;
use LWP::UserAgent;
use CGI;
use CGI::Carp qw(fatalsToBrowser);
my $q = new CGI;
my $ua = LWP::UserAgent->new;
if ($q->param("domain
on di, 18 feb 2003 16:43:22 GMT, Scott Lutz wrote:
> What I am attempting to do, is do a server side "form action"
> redirect based on a regex on a field from the form. It now seems that
> this is just going to POST the form data, and leave the user hanging.
> Is HTTP::R
What I am attempting to do, is do a server side "form action" redirect based on a
regex on a field from the form.
It now seems that this is just going to POST the form data, and leave the user
hanging.
Is HTTP::Request the best way to direct the user and the form data to the appropr
hi everyone...
I guess this problem is less related to perl (though it might be) and
more related to HTTP...
I'm trying to write a program that sends an HTTP request (using
LWP::UserAgent::Request) to a server (web.icq.com, which i know is
working fine), but all i get in status_line is "
12 matches
Mail list logo