473,326 Members | 2,192 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,326 software developers and data experts.

Open Web Directory

Hi,

I was wondering how to open up a web directory to get a file listing.

The directory I want to open allows directory listings, but has a
directory password. Meaning it gives me a prompt to put in a username
and password when I go to the web address in internet explorer. Once I
put in the correct username and password, it shows the directory
listing.

Thanks,

Marcus de Leon

Sep 12 '07 #1
2 2490
Hello, ma***********@gmail.com!

That listing is server-generated HTML file that looks like directory
listing.

So, you have following options:
1. parse HTML returned by the server and detect file/dir links
2. get ftp access to that folder.

For the 1-st way HttpWebRequest/HttpWebResponse will be needed.
For the 2-nd - FtpWebRequest/FtpWebResponse

--
With best regards, Vadym Stetsiak.
Blog: http://vadmyst.blogspot.com
You wrote on Wed, 12 Sep 2007 05:11:07 -0700:

mHi,

mI was wondering how to open up a web directory to get a file listing.

mThe directory I want to open allows directory listings, but has a
mdirectory password. Meaning it gives me a prompt to put in a username
mand password when I go to the web address in internet explorer. Once
mI put in the correct username and password, it shows the directory
mlisting.

mThanks,

mMarcus de Leon

Sep 12 '07 #2
On Sep 12, 2:11 pm, marcusadel...@gmail.com wrote:
Hi,

I was wondering how to open up a web directory to get a file listing.

The directory I want to open allows directory listings, but has a
directory password. Meaning it gives me a prompt to put in a username
and password when I go to the web address in internet explorer. Once I
put in the correct username and password, it shows the directory
listing.

Thanks,

Marcus de Leon
You can use webclient object. for example:

WebClient wc = new WebClient();
wc.Credentials = new NetworkCredential("username", "password",
"domain");
wc.DownloadData("address");

and then parse the returned html. But, it will be better to define FTP
and use it.

Sep 12 '07 #3

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

Similar topics

6
by: haynesc | last post by:
Hi, I'm having a problem where when trying to open a file in write mode, I get an IOError stating no such file or directory. I'm calling an external program which takes an input file and...
0
by: jbailo | last post by:
http://dmoz.org/license.html The Open Directory is a compilation of many different editors' contributions. Netscape Communications Corporation (`Netscape') owns the copyright to the compilation...
0
by: KevinGravelle | last post by:
Hello, I am running an Apache web server and my httpd configuration file is utilizing the aspdotnet_module in order to run an ASP.NET application. Whenever I try and open my existing web...
5
by: John Black | last post by:
Hi, I have a code to open a file like this, int r = open("file1", O_RDONLY, 0); let's say the executable a.out is at <dir> and file1 is also at <dir>, then no problem. The problem is when...
0
by: CM | last post by:
Hi there: I have a web project which can be open and run without problem. I didn't open the web application for a period and during which I didn't modified any IIS items, but now I cannot open any...
4
by: CM | last post by:
Hi there: I have a web project which can be open and run without problem. I didn't open the web application for a period and during which I didn't modified any IIS items, but now I cannot open any...
6
by: Bruce | last post by:
I am doing development work on an asp.net app and a web service on a Win XP Pro SP2 development workstation, using vs.net 2003. For reasons that I wont try to explain here, I recently moved the...
0
by: Paul Brady | last post by:
I volunteer at a youth ministry agency and help them with their student database. They have two computers, both running Windows XP. Both have Office 2002 installed without Access, except that...
24
by: dancer | last post by:
Using ASP.net 1.1 and Microsoft Access. I received the following error message. Why? I have closed the Access file. I have another very small access file that opens with no trouble with the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.