Re: HTTP::Request

2003-11-10 Thread drieux
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

Re: HTTP::Request

2003-11-07 Thread Tobias Fink
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

Re: HTTP::Request

2003-11-06 Thread drieux
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

Re: HTTP::Request

2003-11-06 Thread Sara
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

Re: HTTP::Request

2003-11-06 Thread Wiggins d'Anconia
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 ?

HTTP::Request

2003-11-06 Thread Tobias Fink
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

RE: help with HTTP::Request for POST

2003-02-18 Thread Scott Lutz
: 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

Re: help with HTTP::Request for POST

2003-02-18 Thread drieux
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

Re: help with HTTP::Request for POST

2003-02-18 Thread drieux
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

Re: help with HTTP::Request for POST

2003-02-18 Thread Felix Geerinckx
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

help with HTTP::Request for POST

2003-02-18 Thread Scott Lutz
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

HTTP request error 500

2003-02-04 Thread Shahar Evron
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 "