sailortailorson has asked for the wisdom of the Perl Monks concerning the following question:
I have used this joyfully so far, but only with the first param, which is the URL. So, now I now need to use the PostData and Headers, and am having only sorrow in using anything beyond the first param. I thought it might have been some kind of lost-in-translation from VBA to Perl. I looked atobject.Navigate( _ url As String, _ [Flags As Variant,] _ [TargetFrameName As Variant,] _ [PostData As Variant,] _ [Headers As Variant])
The program below illustrates my problem. When I try to use the first method, I believe I am passing everything as a GET. This does work, and takes me to the socks search results to dwell there 5 seconds. The other two instances seem like they should work too, one via positional parameters and the other via named parameter, for 5 seconds each. Alas, they take me to our 404 handling page, where a pained-looking woman expresses her displeasure at my attempt.$ex->Amethod("arg")->Bmethod->{'Property'} = "foo"; $ex->Cmethod(undef,undef,$Arg3); $ex->Dmethod($RequiredArg1, {NamedArg1 => $Value1, NamedArg2 => $Value +2});
use Win32::OLE qw(EVENTS); use strict; my $IE = Win32::OLE->new("InternetExplorer.Application") || die "Could not start Internet Explorer.Application\n"; $IE->{visible} = 1; $IE->Navigate("http://amos.shop.com/amos/cc/main/ccn_search/ccsyn/150/ +stid/6150608?search_form=&st=socks&sy=products&search_button.x=39&sea +rch_button.y=12"); sleep 5; $IE->Navigate("http://amos.shop.com/amos/cc/main/ccn_search/ccsyn/150/ +stid/6150608", undef, undef, "search_form=&st=socks&sy=products&searc +h_button.x=39&search_button.y=12", undef); sleep 5;; $IE->Navigate("http://amos.shop.com/amos/cc/main/ccn_search/ccsyn/150/ +stid/6150608", {PostData=>"search_form=&st=socks&sy=products&search_b +utton.x=39&search_button.y=12"}); sleep 5;
|
---|