Discussion:
Getting FTP server type / name
(too old to reply)
SuperBK
2007-12-12 17:15:03 UTC
Permalink
Hi,

When I connect to a server with InternetConnect() and it responds with
a name like
"220 somehost Microsoft FTP Service (Version 5.0)."
is it possible to get that description back from the server?

Thanks,
Brian
Volodymyr Shcherbyna
2007-12-14 08:27:55 UTC
Permalink
This string is retrieved just after connect (.) has succeeded. On wininet
layer you have no luck to get it.

If you really need it you can consider one of the two variants:
- Implement FTP protocol in your application (this approach is quite common,
btw)
- Make extra connection to FTP server (using winsock) to get this string
(this of course is overhead, but if you do that only one time it's not a
tragedy)
--
Volodymyr
Post by SuperBK
Hi,
When I connect to a server with InternetConnect() and it responds with
a name like
"220 somehost Microsoft FTP Service (Version 5.0)."
is it possible to get that description back from the server?
Thanks,
Brian
Loading...