Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 133493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:26:33+00:00 2026-05-11T06:26:33+00:00

I am trying to automate some upload/download tasks from an ftp web server. When

  • 0

I am trying to automate some upload/download tasks from an ftp web server. When I connect to the server through client, or through Firefox even, in order to get to my directory, I have to specify a path like this:

ftp://ftpserver.com/../AB00000/incoming/files 

If I try to access this:

ftp://ftpserver.com/AB00000/incoming/files 

The server throws an error that the directory does not exist. So, the problem:

I am trying to create an FTPWebRequest with the first ftp address, but it always parses out the ‘/../’ part and then my server says the path doesn’t exist.

I’ve tried these:

    Uri target = new Uri('ftp://ftpserver.com/../AB00000/incoming/files'); FtpWebRequest request = (FtpWebRequest)WebReqeuest.Create(target); 

and

string target = 'ftp://ftpserver.com/../AB00000/incoming/files'; FtpWebRequest request = (FtpWebRequest)WebRequest.Create(target); 

In the first bit, the path is already incorrect when the Uri object is instantiated, in the second bit, it’s after the WebRequest.Create method. Any ideas what’s going on?

EDIT:

Additionally, since I posted this, I have tried creating the URI with the no parse option. I have also tried something like this:

string ftpserver = 'ftp://ftpserver.com/../'; string path = '12345/01/01/file.toupload';  Uri = new Uri(ftpserver, path, true); 

And it always parses out the root part (‘/../’).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T06:26:34+00:00Added an answer on May 11, 2026 at 6:26 am

    Try escaping the .. with something like:

    Uri target = new Uri('ftp://ftpserver.com/%2E%2E/AB00000/incoming/files'); 

    That works according to this blog which I found in this discussion.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to automate a download of some data from a web application
I'm trying to automate the download of some data from a webform. I'm using
I am trying to automate some of operation and gather information from a microsoft
I'm working on a shell script to automate some server tasks. One the major
I'm trying to use a command-line client to automate some work on an ASP.NET
I'm trying to automate some stuff in MS Excel. When I try to set
I'm trying to find a way to automate some exception logging code to add
I am trying to automate functional testing of a server using a realistic frequency
I have some SQL scripts that I'm trying to automate. In the past I
I have some tasks on a site in php using nginx that I'm trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.