471,854 Members | 1,568 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,854 software developers and data experts.

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 ?
Oct 3 '10 #1
3 2459
3,503 Expert Mod 2GB
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.


Oct 7 '10 #2
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:
Expand|Select|Wrap|Line Numbers
  1.     foreach (@ARGV) {
  2.         print "$_\n";
  3.         $mech->form_number(2);
  4.         $mech->field('the_file[]' => $_);
  5.         $mech->submit();
  6.     }
Oct 9 '10 #3
anyone ?
Oct 24 '10 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Chandra | last post: by
1 post views Thread by Hal Vaughan | last post: by
2 posts views Thread by Rex | last post: by
reply views Thread by NeoPa | last post: by
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.