i'm using apache HttpClient's GetMethod to get the contents in URL.That url contains nothing but 2 directories under it. My requirement is to read those directory name and displaying it.
I'm getting html source of that page as response, something like this
< ul>
< li >< a href="libraries/" >libraries /< /a>< /li>
< li >< a href="services/">services/< /li>
< /ul>
I feel, the response in the XML format or Json will be easy to use. Is there anyway to get the response in json/xml format?
I tried changing the content-type that didnt help