Wednesday, 29 June 2016

Post Request Using HtmlUnit

Post Request Using HtmlUnit

If you hit request without browser you have multiple libraries.

In one of that is HtmlUnit that will headless browser to hit the request.

In java you have hit request like post()/get() that depends open to urls and parameters that will required to bases for identify you request is from browser or not.
so, you need to pass the parameters that you need to authentication require from server side to process your request.

Requrie library : HtmlUnit