[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-Modules] Another nasty problem?



I guess I am working on too many things at a time. I forgot what I 
did yesterday.

I had a simple test script which might spot the problem.

require LWP::UserAgent;
$ua = new LWP::UserAgent;
$request = new HTTP::Request( 'GET', 'file:///Macintosh%20HD/a' );
$response = $ua->request($request, 'tmp');
print $response->as_string(), "\n";

This crashes MacPerl (and eventually the OS) although there is file '
a' on 'Macintosh HD.'


KIMURA Takeshi wrote on 00.4.20 9:11 AM: 
>I had a module derived from pure Perl HTML::Parser and struggled a 
>while making it work under XS version.  With a help from lwp list, I 
>have a new new subroutine and everything started to work fine.
>
>Now, I have a different problem.
>
>Inside my module there is a LWP::UserAgent instance and it fetches 
>some file according to the URL passed to it.
>
>It seems ok with 'http://...' but not with 'file:///...'
>
>Sometimes it does work, but another time not.
>
>It starts ToolServer application and crashes me into MacsBug.
>
>Any clue figuring out where the problem is?
>Where should I start my investigation? 


--
Takeshi

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-modules-request@macperl.org