Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bug in Internet Explorer's FTP mechanism?

Status
Not open for further replies.

StandaK

Programmer
Feb 14, 2003
22
CZ
Hi all,
I'm developing FTP Server and I'm standing in front of quite interesting problem with handling FTP URLs in Internet Explorer: consider this FTP URL:
ftp://127.0.0.1/=Temp=/Update/hi/2/Main.upd
The physical path of FTP's root is c:\=FTP=Of course Main.upd is file. But, when I click on this URL in Internet Explorer, I can see that it sends CWD command instead of RETR to my server! Here's the log from server:

> USER anonymous
< 331 Password required for anonymous
> PASS IEUser@
< 230 User anonymous is logged in
> TYPE I
< 200 Type set to: I
> PASV
< 227 Opening passive mode (10,28,14,98,10,190)
> CWD /=Temp=/Hi/update/2/Main.upd
< 501 CWD failed /C:/=FTP=/=Temp=/Hi/update/2/Main.upd/"

> USER anonymous
< 331 Password required for anonymous
> PASS IEUser@
< 230 User anonymous is logged in
> TYPE I
< 200 Type set to: I
> PASV
< 227 Opening passive mode (10,28,14,98,10,190)
> CWD /=Temp=/Hi/update/2/Main.upd
< 501 CWD failed /C:/=FTP=/=Temp=/Hi/update/2/Main.upd/"

I tested in on Windows 2000...I really don't why IE tries to treat the FTP URL as a path and not as a file.
 
>Of course Main.upd is file

Well, IE doesn't know that. I'd assume its trying to browse the place given by the url. Isn't the CWD followed by a RETR later in the progress?


/Per
[sub]
&quot;It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure.&quot;[/sub]
 
Your server's response:
[ignore]
< 501 CWD failed /C:/=FTP=/=Temp=/Hi/update/2/Main.upd/
[/ignore]

You sure you want to expose the local file structure to the client rather than a virtual one? IMHO the FTP client shouldn't know anything about C:

/Per
[sub]
&quot;It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure.&quot;[/sub]
 
> Well, IE doesn't know that. I'd assume its trying to
> browse the place given by the url. Isn't the CWD followed > by a RETR later in the progress?
That's just the problem - CWD is not followed by RETR...IE sends CWD twice instead..

> You sure you want to expose the local file structure to
> the client rather than a virtual one?
Yes, that's physical directory structure.

> IMHO the FTP client shouldn't know anything about C:
Don't know whether yes or no, but I think in this particular case it is not the problem...

Now I found this out: When I try the same thing on WinXP, everything is OK, IE sends just RETR..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top