Re: LWP UserAgent form post problem
From: Eric Bohlman (ebohlman_at_earthlink.net)
Date: 05/17/04
- Next message: Alan J. Flavell: "Re: LWP UserAgent form post problem"
- Previous message: Charles DeRykus: "Re: LWP UserAgent form post problem"
- In reply to: Wayne S: "LWP UserAgent form post problem"
- Next in thread: Alan J. Flavell: "Re: LWP UserAgent form post problem"
- Reply: Alan J. Flavell: "Re: LWP UserAgent form post problem"
- Reply: Wayne S: "Re: LWP UserAgent form post problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 17 May 2004 19:01:47 GMT
wayne_naomi@yahoo.com (Wayne S) wrote in
news:8c8696f2.0405170633.e2d3cb9@posting.google.com:
> I am probably missing something obvious right in front of me, but
> hopefully another point of view will help me. When I paste the
> following link in my browser:
>
> http://www.tad.org/Datasearch/relocation.cfm?StNum=1017&StName=lindstro
> m&Styp=Any+Street+Type
You're using the GET method there (parameters sent as part of the URL).
> I get the data I want. But when I use the following PERL code, the
> server returns no matches:
>
> #!C:\perl\bin\perl.exe -w
> use strict;
> use LWP;
>
> open (OUT, ">tadout.txt");
>
> my $browser = LWP::UserAgent->new();
>
> my $response = $browser->post(
> 'http://www.tad.org/Datasearch/relocation.cfm',
> [
> "StNum" => "1017",
> "StName" => "lindstrom",
> "Styp" => "Any+Street+Type",
> ]
> );
You're using the POST method there (parameters sent as part of the request
body). It's very likely that the server-side process you're trying to
communicate can only handle GET requests.
- Next message: Alan J. Flavell: "Re: LWP UserAgent form post problem"
- Previous message: Charles DeRykus: "Re: LWP UserAgent form post problem"
- In reply to: Wayne S: "LWP UserAgent form post problem"
- Next in thread: Alan J. Flavell: "Re: LWP UserAgent form post problem"
- Reply: Alan J. Flavell: "Re: LWP UserAgent form post problem"
- Reply: Wayne S: "Re: LWP UserAgent form post problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|