I\'m writing a simple client in Java to allow reusable use of proprietary virus scanning software accessible through a RESTful API. To upload a file for scanning the API req
You need to use exchange method of RestTemplate of Java Spring framework.
exchange
RestTemplate
Read this tutorial: http://codeflex.co/java-rest-client-get-cookie/