import java.io.*; import com.jayway.restassured.response.Response; import static com.jayway.restassured.RestAssured.*; /** * @author Shane Chubb * */ public class Main { public static void main(String[] args) { System.out.println("Start HireAbility Java POST test."); try { String output = null; // Note: You can also replace the 3 keys below with: // formParam("product_code", "Your PRODUCT CODE"). Response r = given(). formParam("did", "Your DID"). formParam("pid", "Your PID"). formParam("cid", "Your CID"). formParam("document_title", "Something.docx"). multiPart("document", new File("\\path\\to\\document")). when(). post("http://processing.resumeparser.com/requestprocessing.html"); output = r.getBody().asString(); System.out.println(output); } catch(Exception ex) { System.out.println(ex.getMessage()); } } }