Gossamer Forum
Home : General : Perl Programming :

Using Win32::Internet to FTP

Quote Reply
Using Win32::Internet to FTP
Hi,

I was wondering if anybody had ever used this module to do FTP'ing through a proxy or firewall.
I can't seem to find examples of this anywhere.
I don't have the NET::FTP module, and the company i work for won't install it, so i'm stuck using the win32

If anybody has any good sample code connecting to an FTP site with a firewall/proxy, i would be very thankful if you would share that with me.

Thanks!
Quote Reply
Re: [llccoo] Using Win32::Internet to FTP In reply to
Hello IIccoo,

If you are running from windows you may be able to use the ftp program
that comes with windows.

See http://support.microsoft.com/?kbid=96269 for FTP Batch scripts.

You might then call this from a perl script.

Hope this helps

Cornball
Quote Reply
Re: [cornball] Using Win32::Internet to FTP In reply to
This is how I have most of the jobs running now. I was trying to cut down having more files by just including it in the perl
script. I already use it to append a date to directories or files when i ftp, because some files are date sensitive.
So i thought i just eliminate the extra ftp line and ftp script file in the batch file process and put it into the perl script.

Thanks though =)
Quote Reply
Re: [llccoo] Using Win32::Internet to FTP In reply to
Hello IIccoo,

Have a look at : http://affy.blogspot.com/p5be/ftplib.htm

Basically you can use Socket.pm , which you should have by default with Perl
to create yor own FTP client with perl. I think Net::Ftp uses socket also.

Hope this helps.

Thanks cornball
Quote Reply
Re: [cornball] Using Win32::Internet to FTP In reply to
Interesting site. I will deff. take a look at this during the weekend.
Quote Reply
Re: [cornball] Using Win32::Internet to FTP In reply to
Has anybody ever used this http://affy.blogspot.com/p5be/ftplib.htm to biuld a ftp client ?
Just wondering to see if i can get some good examples.