in reply to running cgi off the command line works, but running on the browser fails with a 500 error

This only addresses the second error. I already addressed the first error in an earlier post.

The second error means that http://pseweb.vmware.com/pending/194951021 returned status code 500, getstore is unable to fetch that resource, or some internal error occured in getstore. getstore doesn't provide much feedback, unfortunately. You could use LWP::UserAgent's request method instead of LWP::Simple's getstore and dump the response on error, but I suspect it's one of the following:

The first two problems can also be avoided by not using a file at all. If you don't actually need to store the file, just use get.

use LWP::Simple qw( get ); my $data = get($url); open(IN, '<', \$data); while (<IN>) { ...
  • Comment on Re: running cgi off the command line works, but running on the browser fails with a 500 error
  • Select or Download Code