scriptscript bug in HTML::TokeParser?

2004-08-25 Thread ashley
Hey everyone. I think this is the right list to bring this up, please forgive me if I'm wrong. While writing a simple HTML validator, forbidden tag stripper, I came across what might be a problem, though it might be expected and appropriate behavior, I thought I'd better bring it up. A script

Re: scriptscript bug in HTML::TokeParser?

2004-08-25 Thread Gisle Aas
ashley [EMAIL PROTECTED] writes: Hey everyone. I think this is the right list to bring this up, please forgive me if I'm wrong. This list should be right. While writing a simple HTML validator, forbidden tag stripper, I came across what might be a problem, though it might be expected and

Remove bread crumbs

2004-08-25 Thread David Gerler
I have a working script, using LWP::UserAgent, that goes to a site and downloads descriptions and pictures after navigating to the correct page. If works for several pages up downloads, but then fails with a 500 error of line too long. I believe I have tracked the problem to the cookie header. The

Website thinks Mech is MSIE 4.0

2004-08-25 Thread Joseph Alotta
Greetings, I am trying to use WWW::Mechanize to get my account data. First thing is that the website tells me Sorry you need Internet Explorer 4.O or greater. I think I have done everything to set it to be IE 6.O (Also 5.5). What am I doing wrong? Thank you, Joe. #!/usr/bin/perl #

Re: Website thinks Mech is MSIE 4.0

2004-08-25 Thread Gedanken
On Wed, 25 Aug 2004, Joseph Alotta wrote: my first guess without seeing the sites html code would be that you are correctly sending the user-agent info, but one of 2 things is wrong: - you are missing a Host header in the request so i thinks you arent httpd 1.1 compliant - some kind of

Re: Website thinks Mech is MSIE 4.0

2004-08-25 Thread Gedanken
On Wed, 25 Aug 2004, Gedanken wrote: i just took a quick look. after the initial 302 redirect, they are setting a cookie called AnalysisUserID. i would suspect that is failing. id look at the javascript code that generates that cookie, duplicate it yourself, and manually 'give' yourself

Re: Website thinks Mech is MSIE 4.0

2004-08-25 Thread Joseph Alotta
Gedanken, Thanks for helping me. I was looking at the docs for Mechanize and the default behavior is to accept cookies. Shouldn't Mechanize have taken the cookie when it was set? I searched on Google and CPAN and I couldn't find a good example of how to set a cookie manually. I was thinking

Re: Website thinks Mech is MSIE 4.0

2004-08-25 Thread Gedanken
On Wed, 25 Aug 2004, Joseph Alotta wrote: Gedanken, Thanks for helping me. I was looking at the docs for Mechanize and the default behavior is to accept cookies. Shouldn't Mechanize have taken the cookie when it was set? yes, mechanize will accept cookies that are sent, but mechanize

RE: Website thinks Mech is MSIE 4.0

2004-08-25 Thread Cahoon, Forrest
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 -Original Message- From: Gedanken [mailto:[EMAIL PROTECTED]

Re: Website thinks Mech is MSIE 4.0

2004-08-25 Thread Joseph Alotta
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

Re: Website thinks Mech is MSIE 4.0

2004-08-25 Thread Joseph Alotta
Hi Gedanken, Thanks again for your help. I put in the line that sets the cookie and I looked at the hmtl and found a number to put in the some-crazy-number field, but I guess it was the wrong number. I cut out all the other stuff in my program to make it simpler and here is a copy so you can