java - How to get Httpclient GEtMethod Response in XML/JSON format -


I am using the HTT Client's Gotmip to get content in the URL. There is nothing in the URL but under this 2 directories need me to read and display those directory names.

I'm getting that page as an HTML source response, something like

& lt; UL>
& lt; Li> & lt; A href = "library /"> library / & lt; / A> & lt; / Li>
& lt; Li> & lt; A href = "services /"> Services / & lt; / Li>
& lt; / Ul>

I think, feedback in XML format or Jason will be easy to use. Is there any way to get feedback in Json / xml format?

I tried to change the content type which

There is no responsibility.

Customer can only tell in that format how he would like the response and if the server supports it the customer will get it in the desired format.


Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -