WebRequest.RegisterPrefix - whats the creator ?

  • Thread starter Thread starter Kevin Steffer
  • Start date Start date
K

Kevin Steffer

Hi group

I have a webform which I want to make an ftp connection for a
filetransfer from.
The thing is when I use the WebRequest class it says "The URI prefix
is not recognized" and my URI is ftp://localhost/

Then I discovered that the WebRequest class has a RegisterPrefix
method which takes a string as prefix and it needs a
System.Net.IWebRequestCreate but how is such one made ?
The documentation is out of examples :(

Here is my code:

WebRequest.RegisterPrefix("ftp",WHAT TO BE HERE ??);
WebRequest wRequest = WebRequest.Create("ftp://localhost/");

/- Kevin -\
 
Hi Kevin,

Unfortunately, the framework does not ship with an implementation of the FTP protocol, so in order to make your scenario work, you'll
need to write your own (or find one on the web). Once you have this FTP class, you'd create a class that implements IWebCreate and creates
instances of this class. This is the interface you'd pass to the RegisterPrefix method.

-Shawn
http://blogs.msdn.com/shawnfa

--

This posting is provided "AS IS" with no warranties, and confers no rights.
Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they
originated.
--------------------
 

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

Back
Top