I have a situation where I need to validate the content of a page at a URL, 
where I've gotten the URL from a property in a JAX-RS response.  I tried using 
HTMLUnit for this, but it looks like their proxy interface doesn't allow 
setting a proxy user and password, and it doesn't appear to read the 
"http.proxy*" system variables.  Fortunately, WebClient appears to 
transparently use these (I'm guessing this is because WebClient uses 
HTTPUrlConnection under the covers, whereas HTMLUnit is using a hidden 
HttpClient under the covers).

What I can't figure out, however, is how to make WebClient just return the 
entire text content of the page.  I thought perhaps that 
"client.get(String.class)" would do it, but it does not.

Reply via email to