Package org.stringtree.http

Examples of org.stringtree.http.Document


        client = new HTTPClient();
    }
   
    public void testPut() throws IOException {
      MultipartForm form = new MultipartForm();
        form.put("first", new Document("primary"));
        form.put("second", new Document("secondary"));
System.err.println("posting " + form.dump());
        Document result = client.post(baseURL + "multi", form);
        assertEquals("200", result.getHeader(HTTPClient.HTTP_RESPONSE_CODE));
    }
View Full Code Here


   
    public void testPut() throws IOException {
        Form form = new Form();
        form.put("first", "primary");
        form.put("second", "secondary");
        Document result = client.post(baseURL + "action", form);
        assertEquals("200", result.getHeader(HTTPClient.HTTP_RESPONSE_CODE));
        assertEquals("action(primary,secondary)", result.getContentAsString());
    }
View Full Code Here

TOP

Related Classes of org.stringtree.http.Document

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.