You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by GEORGE JOSEPH <le...@yahoo.com> on 2004/02/07 16:51:54 UTC

How to get plain text responses from Apache and subdirectory contents

Hi Everybody,

  I am developing a client program which communicates
with the Apache server to download files in its 
/var/www/html/media directory.

I wish to get the Index listing of the above mentioned
directory ,in plain text format.Is that possible?What
is the "Accept :" string that should be put in Place
so that i get the server response in plain text.Please
note that the solution I have to implement has to be
on the Client program side with manipulation of the
GET request and the "Accept:" string in the "GET "
request.I index the Server contents by sending the
follwing string

"GET HTTP/1.1 /   Index"
with the other parameters following suite.

Please tell me whether This is the right way to tell
the server to Index its contents.I would also Like to
know whether there is a method of making the server
output the subdirectory contents as well.
Any advice would be appreciated.
Thanks,
George.





--- gregames@apache.org wrote:
> jorton@apache.org wrote:
> 
> >   * buildconf: Clean autoconf cache after running
> autoconf too.
> 
> >   +# Remove autoconf 2.5x's cache directory
> >   +rm -rf autom4te*.cache
> 
> yay!
> 
> Greg
> 


__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

Re: How to get plain text responses from Apache and subdirectory contents

Posted by Joshua Slive <jo...@slive.ca>.
[This is probably a question better suited to users@httpd...]

On Sat, 7 Feb 2004, GEORGE JOSEPH wrote:
>   I am developing a client program which communicates
> with the Apache server to download files in its
> /var/www/html/media directory.
>
> I wish to get the Index listing of the above mentioned
> directory ,in plain text format.Is that possible?

Not from mod_autoindex.  See the mod_autoindex for the various formats it
supports; but all are some variation of html.

You may want to look at mod_dav, which provides some more structured (xml)
methods for finding information about resources.

Joshua.