FTP ls _vs_ FTP from Browser 
Author Message
 FTP ls _vs_ FTP from Browser

I'm having problems trying to 'FTP GET' a file that I can see/download using
my browser,
but FTP returns an error that it can't find the file.

Sample Code:
            myURL = "ftp://ftp.<ispprovider>.com"
            FTPstmt = "GET  /sitesubdirectory/file.ext  c:\ftpfile.txt"

            InetFTP.Execute myURL, FTPstmt

            While InetFTP.StillExecuting
               DoEvents
               Wend

            On Error GoTo 0

Error message received is:
        Error: 12003 200 Type set to I
        200 Port command successful
        550 README.TXT: The system cannot find the file specified.

In note of this, can someone try and explain something strange that I've
noticed during my debugging; I think this has alot to do with it...

When using my browser pointing to a given ftp url I see one directory
structure, but when I use an FTP program (such as the one that comes w/
Windows95  by typing FTP <url> at the dos command line) pointing to the same
url, I see a totally different directory structure.

1) Why are the two directories different?
2) Could this be why the "system cannot find the file specified"?

This url that I'm testing with just happens to be my ISP's ftp site.

Thanks for any info,

Mike



Thu, 21 Sep 2000 04:00:00 GMT  
 FTP ls _vs_ FTP from Browser

Well thanks anyway guys.  I read a few messages in this group, and the
..vb.controls group, and heard that there was a Service Pack available
(SP3).  It apparently fixes a bug with converting the filename to uppercase.
The server I was trying to access was case sensitive.

Did Microsoft send notices about these service pack releases for bug fixes
to their registered users??  I'm registered, but maybe have changed my
address since then...  I sure hope so MICROSOFT, I've spent grueling and
painful hours trying to figure MY problem out.  Ya think Bill would pay an
invoice if I were to send him one???  hehehe

I'm still curious about question #1 if anyone has thought about it.

Thanks

Mike

Quote:

>I'm having problems trying to 'FTP GET' a file that I can see/download
using
>my browser,
>but FTP returns an error that it can't find the file.

>Sample Code:
>            myURL = "ftp://ftp.<ispprovider>.com"
>            FTPstmt = "GET  /sitesubdirectory/file.ext  c:\ftpfile.txt"

>            InetFTP.Execute myURL, FTPstmt

>            While InetFTP.StillExecuting
>               DoEvents
>               Wend

>            On Error GoTo 0

>Error message received is:
>        Error: 12003 200 Type set to I
>        200 Port command successful
>        550 README.TXT: The system cannot find the file specified.

>In note of this, can someone try and explain something strange that I've
>noticed during my debugging; I think this has alot to do with it...

>When using my browser pointing to a given ftp url I see one directory
>structure, but when I use an FTP program (such as the one that comes w/
>Windows95  by typing FTP <url> at the dos command line) pointing to the
same
>url, I see a totally different directory structure.

>1) Why are the two directories different?
>2) Could this be why the "system cannot find the file specified"?

>This url that I'm testing with just happens to be my ISP's ftp site.

>Thanks for any info,

>Mike




Thu, 21 Sep 2000 04:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. FTP ls and dir not working

2. ftp://ftp.basicguru.com/pub/dnavarro/

3. FTP - determining if incoming FTP file is loaded before FTPing it out

4. FTP - Get File Date from FTP Site

5. How To FTP a File To FTP Server

6. FTP Trouble with winsock and FTP object!!!!

7. The FTP-SPY: yet another ftp-freeware (written in VB4.0)

8. Internet Transfer Control - Cannot FTP to Intranet FTP sites

9. Ftp to Ftp transfers (and assorted other thingies)

10. FTP via VB to an FTP Server

11. RE : Looking for WEB / FTP browser...

12. lookinf for WEB / FTP browser

 

 
Powered by phpBB® Forum Software