469,344 Members | 6,476 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,344 developers. It's quick & easy.

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 2413
numberwhun
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.

Regards,

Jeff
Oct 7 '10 #2
it's something like this:
http://search.cpan.org/~petdance/WWW..._by_John_Beppu
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
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.