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

Fellow Monks of Perl,

I have a WWW::Mechanize/CGI::Prototype::Mecha script that goes to a CGI::ProtoType application and uploads a file via a form input. My test "hangs" upon submission of the form and will only continue if I use '^C'. The file size is only a couple of bytes so I'm guessing there is a deeper problem. Anyone else experiencing something like this or have any insight into a solution to this wierd behaviour?

  • Comment on CGI::Prototype::Mecha (WWW::Mechanize) hangs on upload of file.

Replies are listed 'Best First'.
Re: CGI::Prototype::Mecha (WWW::Mechanize) hangs on upload of file.
by merlyn (Sage) on Jul 21, 2005 at 17:15 UTC
    If you've updated to the latest release, it should work. Make sure you have version 0.20 or 0.21 of Mecha.

    Also, there might be a hidden dependancy on the version of CGI.pm. I'm working to remove that, but I might have erred.

    Use rt.cpan.org to report bugs with a short test case, so I can put it in my todo queue.

    -- Randal L. Schwartz, Perl hacker
    Be sure to read my standard disclaimer if this is a reply.

      I'm using version 0.21 of mecha and 3.1 of CGI.pm. So this is more of a Mecha problem than a WWW::Mechanize problem?

        Not sure. You might also post your problem to the CGI::Prototype mailing list in case they can help you faster than I can.

        From what I've seen so far, you haven't given me enough information to reproduce the bug, because I can use code just like that to simulate the upload. Perhaps it's something with the prototype app that isn't working?

        -- Randal L. Schwartz, Perl hacker
        Be sure to read my standard disclaimer if this is a reply.