in reply to Re: Re: fetching ftp site info
in thread fetching ftp site info

I believe the reason is such --

Because you will get the html source code only when you use an html client to view an ftp site. FTP by itself is doing what it is supposed to do... give you a listing. You are using a screwdriver to hammer a nail, and then getting surprised that it is going straight in instead of turning.

In your code try using http:// protocol instead of ftp and you should get the html source code.