6
1
I have set up a number of an FTP sites using IIS7.5. The sites use hostnames to differentiate between them. One drawback of using hostnames is that you have to pass the address of the ftp site into the username e.g.
Ftp Address: ftp://ftp.example.com
Username: ftp.example.com|User1
Password: psswrd
I would like to at least pass in the username as part of the connection address e.g. ftp://ftp.example.com|User1@ftp.example.com but I have been unable to do this using Windows Explorer (in Windows 7). Whenever I try this technique I'm still prompted to enter the user name and password.
I have set the useDomainNameAsHostName=True on the server which allows a bit more flexibility in the username but I still can’t get it to work. Neither ftp://ftp.example.com%5CUser1@ftp.example.com/ or ftp://User1%40ftp.example.com@ftp.example.com/ seems to make any difference in IE9 or Chrome.
Where am I going wrong?
Is there a reason why you can't simply use:
ftp://username:password@domain.tld
? – iglvzx – 2011-12-03T00:23:59.133Yeah, it isn't working, hence my question. I'm using windows 7 and a collecting to ftp via windows explorer. Passing the username in the format you suggested just prompts me with a login dialog which doesn't have the user name populated. My main goal is to be able to pass around a connection string so that all the client has to do is enter the password. – SausageFingers – 2011-12-05T11:43:32.207