WWW:Mechanize or LWP:Agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • UnknownOneTwo
    New Member
    • Jul 2010
    • 5

    WWW:Mechanize or LWP:Agent

    My problem is 'Out of memory' error when i want to 'submit' page, with 'form' where i put an address to a file. When file is bigger then maybe 70 MB error occure.

    I use to done that WWW:Mechanize and LWP in both it occures.

    If I am not wrong, problem is in loading file to an object. And i don't know how to solve it...

    I've found something like this:
    :content_file => $filename
    :content_cb => \&callback
    :read_size_hint => $bytes
    But it's only to SAVE page in a file if i am not wrong ?
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    I hate to say this, but your way of asking a question is so vague that I really don't understand what the issue is. We really need to see your code in order to try and help you further.

    Regards,

    Jeff

    Comment

    • UnknownOneTwo
      New Member
      • Jul 2010
      • 5

      #3
      it's something like this:

      but images are small, my files are bigger then 70 MB and then 'Out of memory' error is popping out.

      After ;submit; in this part of a code:
      Code:
          foreach (@ARGV) {
              print "$_\n";
              $mech->form_number(2);
              $mech->field('the_file[]' => $_);
              $mech->submit();
          }

      Comment

      • UnknownOneTwo
        New Member
        • Jul 2010
        • 5

        #4
        anyone ?

        Comment

        Working...