I checked response() and this works fine. I get the form and fill in the field like this.get("http://user:passwd\@www.somesite.com/subdir/_vti_bin/shtml.exe/po +st.htm?474")
Again, this works fine. The button to post the reply isn't named so I do this.$w->form_number(1); $w->field('Comments', 'woo-hoo');
Then I check the response$w->submit_form();
and get a "401 Authorization Required" error.my $r = $w->response(); print 'error_as_HTML: '.$r->error_as_HTML."\n";
I think the problem is that the ?474 in the url is a dynamic number assigned by the shtml code. That's one thing I have NO idea how to automate. I don't know the logic on how Microsoft generates that number or on how I can make the post.
Do you have any idea? Or can you point me in the right direction? I've given up.
Thanks,
monktim
In reply to Re: Re: Re: Re: Redirecting Forms with WWW::Mechanize
by Anonymous Monk
in thread Redirecting Forms with WWW::Mechanize
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |