Andy,
Can you tell me how mech-dump works?
I'm trying to post a reply to a friends forum. I get the page like this
get("http://user:passwd\@www.somesite.com/subdir/_vti_bin/shtml.exe/po
+st.htm?474")
I checked response() and this works fine. I get the form and fill in the field like this.
$w->form_number(1);
$w->field('Comments', 'woo-hoo');
Again, this works fine. The button to post the reply isn't named so I do this.
$w->submit_form();
Then I check the response
my $r = $w->response();
print 'error_as_HTML: '.$r->error_as_HTML."\n";
and get a "401 Authorization Required" error.
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
|