in reply to Why this file fetch fails with WWW::Mechanize?

If the file fetch works when Javascript is disabled, then it seems to me you have your answer -- fetch the file with Javascript disabled. (As well, Andy Lester explains in WWW::Mechanize's POD that his module doesn't support Javascript.)

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

  • Comment on Re: Why this file fetch fails with WWW::Mechanize?

Replies are listed 'Best First'.
Re^2: Why this file fetch fails with WWW::Mechanize?
by ZJ.Mike.2009 (Scribe) on Aug 04, 2010 at 23:54 UTC

    @talexb, thanks for the input :)

    I know that Mechanize does not support Javascript. The thing is the file fetch can work with browser's Javascript either being disabled or enabled, and that makes me think Javascript hasn't played a part in my problem.

    If Mechanize does not act like a normal browser, which makes the file hosting server rejects its connection, adding headers should have solved the problem but it hasn't. This is something puzzling.