in reply to WWW::Mechanize can't see the fields
I'm getting this output. I used post because I noticed that it is using the POST method.#!/usr/bin/perl use warnings; use strict; use WWW::Mechanize; my $url; my $m = WWW::Mechanize->new(autocheck => 1); my $response; $url = 'http://www.attorneycar.com/what-to-do-in-a-car-accident/'; $m->post($url); $m->form_number(2); $m->field('author', 'test'); $m->field('email', 'test@hotmail.com'); $m->field('url', 'sasdsadadasd'); $m->field('comment', 'sasdsadadasd'); $m->field('comment_post_ID', '37' ); $response = $m->submit_form(); print $m->response(); print $response->content();
Error POSTing http://www.attorneycar.com/wp-comments-post.php: Interna +l Server Error at 124.pl line 21
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: WWW::Mechanize can't see the fields
by Corion (Patriarch) on Oct 23, 2009 at 22:36 UTC | |
by rlopes (Initiate) on Oct 26, 2009 at 11:27 UTC |