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 2 2522
Hello, ma***********@g mail.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
On Sep 12, 2:11 pm, marcusadel...@g mail.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 NetworkCredenti al("username", "password",
"domain");
wc.DownloadData ("address");
and then parse the returned html. But, it will be better to define FTP
and use it. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 produces an output file
repeatedly, simulating the input file separately for each replicate.
The error occurs when trying to open the input file to write out the
new data. The problem is difficult to reproduce since it only shows up
once every few...
|
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 of
the different contributions, and makes
the Open Directory available to you to
use under the following license agreement
terms and conditions (`Open Directory License').
|
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 project, I get the error
message:
"Unable to get the project file from the Web server. Unable to open
project 'WebApplication1'. The file path 'C:\Program Files\Apache
Group\Apache2\htdocs\WebApplication1' does not correspond to the URL
|
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 my current directory is at <dir>/<sub_dir> and
file1 is at the sub directory, but a.out is still at <dir>, then when I
|
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 web project even cannot create a new
one. The message for create a new web project is: (Open an oldASP project
got similar error.) My system is Windows 2000 Server
----------------------
The default web access mode for this project is set to...
| |
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 web project even cannot create a new
one. The message for create a new web project is: (Open an oldASP project
got similar error.) My system is Windows 2000 Server
----------------------
The default web access mode for this project is set to...
|
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 application files from
/inetpub/wwwrooot to a directory within "my documents", and I changed the
home directory within IIS accordingly.
However, now when I try to open a new Web Service project in vs.net, I get a
dialog box with this error: ...
|
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 Computer A
had A97. They wanted both computers to be able to use the database,
stored on Computer A. I can't get them to do that, and it seems to be
a network problem.
I installed A2K on each computer, putting it in a special
directory which I...
|
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 same code, except a different name for the file.
The Microsoft Jet database engine cannot open the file
'C:\Inetpub\wwwroot\Accident.mdb'. It is already opened exclusively by
another user, or you need permission to view its data.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |