473,385 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

WebRequest Connecting to FTP

Can anyone show me an example of connecting to an FTP server with a
WebRequest object. According to the help file it can be done but, I can't
find any example of how to do this anywhere.

When I try:
Dim wr As WebRequest = WebRequest.Create(ftp://ftp.microsoft.com)
it throws an exception: URI prefix not recognized.

One of the methods of the Web Request object is RegisterPrefix but, again
there is no example just a very brief description.

I thought the MSDN CD's that came with Visual Studio 6 were pretty usefull.
The "help" that comes with VS .Net couldn't be any more useless if they
tried.

Any help would be greatly appreciated.

Thanks

Nov 20 '05 #1
1 4158
http://support.microsoft.com/default...en-us%3B812404

easy, breezy, beautiful cover girl.

;^)

hth,

steve
"Dennis Powell" <de***********@monroe.army.mil> wrote in message
news:uq**************@TK2MSFTNGP11.phx.gbl...
| Can anyone show me an example of connecting to an FTP server with a
| WebRequest object. According to the help file it can be done but, I can't
| find any example of how to do this anywhere.
|
| When I try:
| Dim wr As WebRequest = WebRequest.Create(ftp://ftp.microsoft.com)
| it throws an exception: URI prefix not recognized.
|
| One of the methods of the Web Request object is RegisterPrefix but, again
| there is no example just a very brief description.
|
| I thought the MSDN CD's that came with Visual Studio 6 were pretty
usefull.
| The "help" that comes with VS .Net couldn't be any more useless if they
| tried.
|
| Any help would be greatly appreciated.
|
| Thanks
|
|
|
Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: James Johnson | last post by:
Dear C#dex, I define a variable: HttpWebRequest webRequest and run the following request webRequest = WebRequest.Create(TARGET_URL) as HttpWebRequest; The webRequest object returns values...
3
by: Paul | last post by:
Hello, First I want to refer to the problem "WebRequest : execute a button" of a few days ago. The way I solved it, I loose my session, and as a consequence my session variables. I don't want...
8
by: John K. | last post by:
Hi I was wondering if it's possible to use the WebRequest class to access a file on windows shared folder with authentication? If yes, what would the syntax be? I've tried to look this up in the...
12
by: ThyRock | last post by:
I am working on a WebRequest accessing the US Postal Service WebTools test API. This service uses a DLL file (ShippingAPITest.dll) with a query string which includes XML. The web service accepts...
2
by: heatstor | last post by:
Hi, When using the webrequest object, is there a way to make the source ip anonymous before connecting to a URL/website. Any help will be appreciated. Asim.
1
by: Mr Flibble | last post by:
OK I logon to a web site and I manage to get an SMSESSION cookie that I then store in a variable called _session (a class scoping variable). I do this by calling a logon URL and setting a cookie...
3
by: eSolTec, Inc. 501(c)(3) | last post by:
Thank you in advance for any and all assistance. I'm trying to create a call to a web page to validate and register software. The code I'm using is: Private Sub OK_Click(ByVal sender As...
3
by: Dave | last post by:
string m_request = some_web_page; HttpWebRequest request = (HttpWebRequest)WebRequest.Create(m_request ); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); Which works...
0
by: CodeMedic42 | last post by:
I have started to play with connecting to a .Net web service that I created. I wanted to figure out how to dynamicaly connect to it without creating a web reference to it. I have so far been able to...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.