joe... your problem might be a function of your perl not following the 302 redirect...
have you been able to verify exactly what's being returned to you from your perl... the lib apps/mods have tools to allow you to see what's being returned regarding the header/content... if you've already verified that you are getting what the mozilla plugin is showing, then you're on the right track... if you haven't then you need to be able to more or less examine the headers with the mods/tools that i indicated... also, check out the sample script i sent you... -bruce -----Original Message----- From: Joseph Alotta [mailto:[EMAIL PROTECTED] Sent: Thursday, August 26, 2004 3:22 PM To: Forrest Cahoon; [EMAIL PROTECTED] Subject: Re: Website thinks Mech is MSIE < 4.0 Hi Forrest, I was able to download Mozilla and install the header addin. I found that the cookie was set just like Gedanken said, and I tried to add it to my code and it still doesn't get past the incompatible screen. Here is all the data for you to look at. Thanks you so much for your help, Joe. __________________________________________________ [Abba:~/oldperlcode] josephal% lite 1. http://pr.retire.americanfunds.com 2. http://pr.retire.americanfunds.com/incompatible.html [Abba:~/oldperlcode] josephal% cat lite #!/usr/bin/env perl # americanfunds - downloads account info from american funds 401k website # use strict; use warnings; use WWW::Mechanize; use HTML::TreeBuilder; use HTML::TableExtract; use Data::Dumper; $Data::Dumper::Terse = 1; my $m = WWW::Mechanize->new( autocheck => 1); $m->agent_alias( 'Windows IE 6' ); main('12345678', '123456'); sub main { my ($id, $pass) = @_; $m->get('http://www.americanfunds.com/retire'), or die "can't get initial americanfunds.com/retire screen"; # Cookie: AnalysisUserId=4.159.209.40:18022109355736926612 $m->cookie_jar()->set_cookie(1, "AnalysisUserID", "4.159.209.40:18022109355736926612", "/", "pr.retire.americanfunds.com"); my $str = $m->base; print "1. $str\n"; $m->follow_link(n => 1 ) or die "can't get login screen"; $str = $m->base; print "2. $str\n"; exit; # # simulate logging in with TIN/PIN # $m->submit_form( form_name => 'login', fields => { partssn => $id, partpin => $pass, }, ) or die "can't login"; } [Abba:~/oldperlcode] josephal% __________________________________________________________ Here is the output of the headers that I got: __________________________________________________________ http://americanfunds.com/retire GET /retire HTTP/1.1 Host: americanfunds.com User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.2) Gecko/20040803 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/ plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cookie: AnalysisUserId=4.159.209.40:18022109355736926612 HTTP/1.x 302 Moved Temporarily Server: "" Date: Thu, 26 Aug 2004 22:05:28 GMT Location: http://pr.retire.americanfunds.com Content-Length: 0 Content-Type: text/html ---------------------------------------------------------- http://pr.retire.americanfunds.com/ GET / HTTP/1.1 Host: pr.retire.americanfunds.com User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.2) Gecko/20040803 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/ plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cookie: AnalysisUserId=4.159.209.40:18022109355736926612; JSESSIONID=BueYh3kll8xzhSxHeBCDFmdFwhoaIipJ2MzpV3sUsoXdkjsY2s0Z! 1637666740!rp-app-prd-c!15521!15525!-714122331!rp-app-prd-a!15521!15525 HTTP/1.x 200 OK Server: Netscape-Enterprise/4.1 Date: Thu, 26 Aug 2004 22:05:28 GMT Content-Type: text/html Etag: "fe3f8750-1-9de-3f15c074" Last-Modified: Wed, 16 Jul 2003 21:15:32 GMT Content-Length: 2526 Accept-Ranges: bytes ---------------------------------------------------------- http://pr.retire.americanfunds.com/servlet/ContentServer? pagename=rpweb/home GET /servlet/ContentServer?pagename=rpweb/home HTTP/1.1 Host: pr.retire.americanfunds.com User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.2) Gecko/20040803 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/ plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://pr.retire.americanfunds.com/ Cookie: AnalysisUserId=4.159.209.40:18022109355736926612; JSESSIONID=BueYh3kll8xzhSxHeBCDFmdFwhoaIipJ2MzpV3sUsoXdkjsY2s0Z! 1637666740!rp-app-prd-c!15521!15525!-714122331!rp-app-prd-a!15521!15525 HTTP/1.x 200 OK Server: Netscape-Enterprise/4.1 Date: Thu, 26 Aug 2004 22:05:29 GMT Content-Type: text/html Connection: close ---------------------------------------------------------- http://pr.retire.americanfunds.com/servlet/ContentServer? pagename=rpweb/comp/ relatedArticlesProperties&cid=1010015019794&recordkeeperId=3 GET /servlet/ContentServer?pagename=rpweb/comp/ relatedArticlesProperties&cid=1010015019794&recordkeeperId=3 HTTP/1.1 Host: pr.retire.americanfunds.com User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.2) Gecko/20040803 Accept: */* Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://pr.retire.americanfunds.com/servlet/ContentServer? pagename=rpweb/home Cookie: AnalysisUserId=4.159.209.40:18022109355736926612; JSESSIONID=BueYh3kll8xzhSxHeBCDFmdFwhoaIipJ2MzpV3sUsoXdkjsY2s0Z! 1637666740!rp-app-prd-c!15521!15525!-714122331!rp-app-prd-a!15521!15525 HTTP/1.x 200 OK Server: Netscape-Enterprise/4.1 Date: Thu, 26 Aug 2004 22:05:30 GMT Content-Type: text/html Connection: close ---------------------------------------------------------- http://pr.retire.americanfunds.com/servlet/ContentServer? pagename=rpweb/comp/nav/ topNavJS&homePageId=1008890736714&recordkeeperId=3 GET /servlet/ContentServer?pagename=rpweb/comp/nav/ topNavJS&homePageId=1008890736714&recordkeeperId=3 HTTP/1.1 Host: pr.retire.americanfunds.com User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.2) Gecko/20040803 Accept: */* Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://pr.retire.americanfunds.com/servlet/ContentServer? pagename=rpweb/home Cookie: AnalysisUserId=4.159.209.40:18022109355736926612; JSESSIONID=BueYh3kll8xzhSxHeBCDFmdFwhoaIipJ2MzpV3sUsoXdkjsY2s0Z! 1637666740!rp-app-prd-c!15521!15525!-714122331!rp-app-prd-a!15521!15525 HTTP/1.x 200 OK Server: Netscape-Enterprise/4.1 Date: Thu, 26 Aug 2004 22:05:31 GMT Content-Type: text/html Connection: close ---------------------------------------------------------- http://pr.retire.americanfunds.com/servlet/ContentServer? pagename=rpweb/comp/nav/ leftNavJS&pageID=1008890736714&hltID=1010015019794&recordkeeperId=3 GET /servlet/ContentServer?pagename=rpweb/comp/nav/ leftNavJS&pageID=1008890736714&hltID=1010015019794&recordkeeperId=3 HTTP/1.1 Host: pr.retire.americanfunds.com User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.2) Gecko/20040803 Accept: */* Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://pr.retire.americanfunds.com/servlet/ContentServer? pagename=rpweb/home Cookie: AnalysisUserId=4.159.209.40:18022109355736926612; JSESSIONID=BueYh3kll8xzhSxHeBCDFmdFwhoaIipJ2MzpV3sUsoXdkjsY2s0Z! 1637666740!rp-app-prd-c!15521!15525!-714122331!rp-app-prd-a!15521!15525 HTTP/1.x 200 OK Server: Netscape-Enterprise/4.1 Date: Thu, 26 Aug 2004 22:05:32 GMT Content-Type: text/html Connection: close ---------------------------------------------------------- On Aug 26, 2004, at 9:56 AM, Cahoon, Forrest wrote: > I was under the impression that IE was a requirement (true for so many > stupid sites these days) > but if Mozilla (or Firefox) works, you can use this: > > http://livehttpheaders.mozdev.org/ > > It's much better than the IE plugin I mentioned earlier, and I'm sure > it will work on Mac (OS X anyway). > > forrest > not speaking for merrill corporation > > -----Original Message----- > From: Joseph Alotta [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 25, 2004 8:52 PM > To: Cahoon, Forrest; [EMAIL PROTECTED] > Subject: Re: Website thinks Mech is MSIE < 4.0 > > Hi Forrest, > > It looks like a very useful product, but I am one of those diehard Mac > fanatics. It didn't seem like Jonas had a version for IE mac or > Safari. > > Thanks anyway, > > Joe. > > > > > On Aug 25, 2004, at 3:55 PM, Cahoon, Forrest wrote: > >> If the site requires IE, I think you could just use ieHTTPHeaders to >> see the cookie being sent without having to decipher the javascript. >> >> http://www.blunck.info/iehttpheaders.html >> >> forrest >> not speaking for merrill corporation >
