relative ftp path using UriBuilder or Uri impossible?

S

Sam Jost

I want to make a FtpWebRequest to download some files.

My problem is: the ftp server does not put me into the root dir of the
file system.
So I need to access a path like:

ftp://ftp.myserver.com/../../var/log/httpd/

UriBuilder and Uri always strip the ../../ part of this uri, so
FtpWebRequest can't find the path, I can't download.

Using the above uri in the internet explorer does work, so I am very
sure it is the right one.

Is there any way to make a legal uri from this string? It is very
annoying not to be able to access this dir just because the uri thinks
it looks funny :(

Thanks,
Sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top