Gangabass has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
last days i several times get Module Error #1 when trying to save last response content (via $mech->save_content("test.htm"))(WWW::Mechanize version is 1.60).

I have also tried to save $mech->content() but with same result. What this all mean?

Replies are listed 'Best First'.
Re: WWW::Mechanize and Module Error #1
by ikegami (Patriarch) on Sep 14, 2009 at 17:22 UTC
    What does $mech->response->as_string return? I expect you'll find that the error originates from the server you are contacting. Presumably, you're not passing the inputs it's expecting in the request.

      Well, this is Pligg registering page and as i can login after this (via web interface) i realize that it get all my data (and register me). But why it sometimes return this error i don't know.

      Also i get same error on different Pligg driven site (not single one). So now i'm sure this is Pligg problem not Perl. I'll try which input i miss (may be some JavaScript).

      Anyway thanks a lot.

        may be some JavaScript

        Not knowing what Pligg is, JavaScript is the most likely cause. If you do a Super Search for JavaScript Mechanize, you should come up with solutions.

Re: WWW::Mechanize and Module Error #1
by Anonymous Monk on Sep 14, 2009 at 14:36 UTC
    last days i several times get Module Error #1 when trying to save last response content

    Where do you get that? As content? If so it is a webserver problem.