It's really easy using the LWP packages. For instance:

    use LWP::Simple;

    getstore ('http://www.perl.org/Images/title.gif', 'title.gif');

will fetch you a camel.

Cheers,

Rob



> -----Original Message-----
> From: ss98 [mailto:[EMAIL PROTECTED]]
> Sent: 05 September 2001 04:47
> To: [EMAIL PROTECTED]
> Subject: How to fetch graphic files from a remote server?
> 
> 
> Hi all,
> 
> I'm a newbie in this field and this is my first time to ask somebody this
> way. If I post here wrong, please let me know. Thanks!
> 
> The problem is what I want to fetch some graphic files from a website and
> then automatically save somewhere in my machine. I would like to use perl to
> do this. I just know how to fetch a text-based document like .html file. But
> I have no any idea to fetch graphics, please help!
> 
> By the way, how to fetch a document like these extensions: .php, .asp, .cfm
> or .shtml etc.? Any idea?
> 
> Thank You!
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to