|
Novice - How would I add a hidden form field to a LWP::UserAgent call?: msg#00672apache.mod-perl
Hi, I'm trying to post data to a server that requires a hidden form field. This is what I'm doing: my $content = "info=somedata"; my $rec_len = length($content); my $send_url = new URI::URL($url); my $hdrsend = new HTTP::Headers('Content-length' => $rec_len); $hdrsend->header('Content-type' => 'text/html'); my $reqest = new HTTP::Request('POST', $send_url, $hdrs, $content); my $uasend = new LWP::UserAgent; my $resp = $uasend-> request($reqest); The response I get back is: <h3>Exception encountered.</h3><pre>Form post has no value for key "info". Form values are: {} If I create an HTML doc with a form it finds the data. Is there something special I need to do to get a hidden form field? Thanks, Chris |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [O] Re: Yahoo is moving to PHP ??: 00672, Mike Miller |
|---|---|
| Next by Date: | Re: [O] Re: Yahoo is moving to PHP ??: 00672, Randal L. Schwartz |
| Previous by Thread: | Re: Yahoo is moving to PHP ??i: 00672, Cristóvão Dalla Costa |
| Next by Thread: | Re: Novice - How would I add a hidden form field to a LWP::UserAgent call?: 00672, Robert Landrum |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |