Hello,
How can I obtain a list of all the files available from a directory on
my server after connecting with an HttpUrlConnection.
Ex.
Connect to http://example.net/test/
Retrieve al ist of all files available in http://example.net/test/.
Thanks.
|
|
0
|
|
|
|
Reply
|
pxl
|
1/21/2008 4:28:48 PM |
|
pxl wrote:
> Hello,
>
> How can I obtain a list of all the files available from a directory on
> my server after connecting with an HttpUrlConnection.
>
> Ex.
> Connect to http://example.net/test/
>
> Retrieve al ist of all files available in http://example.net/test/.
>
>
This is not a function of Java, it's a function of the HTTP server which serves
the URL in question.
You might be able to configure the HTTP server so that it returns directory
listings. How you do that will depend on your HTTP server. Apache uses the
mod_dir and mod_autoindex modules for this. See Apache docs. for more details
at http://httpd.apache.org/docs/. I have no idea how other HTTP servers manage
this.
Also, be aware that without adequate knowledge and precautions this is a huge
security hole as it may allow anyone to navigate and download the entire
contents of your web server.
--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
|
|
0
|
|
|
|
Reply
|
Nigel
|
1/21/2008 5:19:31 PM
|
|
heart, and who love
lowliness, whatever kind of intellect they may have, high or low; and those
who have sufficient understanding to see the truth, whatever opposition they
may have to it.
289. Proof.--1. The Christian religion, by its establishment, having
established itself so strongly, so gently, whilst so contrary to nature. 2.
The sanctity, the dignity, and the humility of a Christian soul. 3. The
miracles of Holy Scripture. 4. Jesus Christ in particular. 5. The apostles
in particular. 6. Moses and the prophets in particular. 7. The Jewish
people. 8. The prophecies. 9. Perpetuity; no religion has perpetuity. 10.
The doctrine which gives a reason for everything. 11. The sanctity of this
law. 12. By the course of the world.
Surely, after considering what is life and what is religion, we should not
refuse to obey the inclination to follow it, if it comes into our heart; and
it is certain that there is no ground for laughing at those who follow it.
290. Proofs of religion.--Morality, doctrine, mirac
|
|
0
|
|
|
|
Reply
|
Nigel
|
1/24/2008 8:40:40 PM
|
|
imperfections and vices which we really
have, it is plain they do us no wrong, since it is not they who cause them;
they rather do us good, since they help us to free ourselves from an evil,
namely, the ignorance of these imperfections. We ought not to be angry at
their knowing our faults and despising us; it is but right that they should
know us for what we are and should despise us, if we are contemptible.
Such are the feelings that would arise in a heart full of equity and
justice. What must we say then of our own heart, when we see it in a wholly
different disposition? For is it not true that we hate truth and those who
tell it us, and that we like them to be deceived in our favour, and prefer
to be esteemed by them as being other than what we are in fact? One proof of
this makes me shudder. The Catholic religion does not bind us to confess our
sins indiscriminately to everybody; it allows them to remain hidden from all
other men save one, to whom she bids us reveal the innermost recesses of our
heart and show ourselves as we are. There is only this one man in the world
whom she orders us to undeceive, and she binds him to an inviolable secrecy,
which makes this knowledge to him as if it were not. Can we imagine anything
more charitable and pleasant? And yet the corruption of man is such that he
finds even this law harsh; and it is one of the main reasons which has
caused a great part of Europe to rebel against the Church.
How unjust and unreasonable is the heart of man, which feels it disagreeable
to be obliged to do in regard to one man what in some measure it were right
to do to all men! For is it right that we should deceive men?
There are different degrees in this aversion to
|
|
0
|
|
|
|
Reply
|
pxl
|
1/24/2008 8:58:38 PM
|
|
|
3 Replies
731 Views
(page loaded in 0.096 seconds)
|