- * post the POST request to the server, with the specified parameter\r
- * @param name parameter name\r
- * @param value parameter value\r
- * @return input stream with the server response\r
- * @throws IOException\r
- * @see setParameter\r
- */\r
- public InputStream post(String name, Object value) throws IOException {\r
- setParameter(name, value);\r
- return post();\r
- }\r
-\r
- /**\r
- * post the POST request to the server, with the specified parameters\r
- * @param name1 first parameter name\r
- * @param value1 first parameter value\r
- * @param name2 second parameter name\r
- * @param value2 second parameter value\r
- * @return input stream with the server response\r
- * @throws IOException\r
- * @see setParameter\r
- */\r
- public InputStream post(String name1, Object value1, String name2, Object value2) throws IOException {\r
- setParameter(name1, value1);\r
- return post(name2, value2);\r
- }\r
-\r
- /**\r
- * post the POST request to the server, with the specified parameters\r
- * @param name1 first parameter name\r
- * @param value1 first parameter value\r
- * @param name2 second parameter name\r
- * @param value2 second parameter value\r
- * @param name3 third parameter name\r
- * @param value3 third parameter value\r
- * @return input stream with the server response\r
- * @throws IOException\r
- * @see setParameter\r
- */\r
- public InputStream post(String name1, Object value1, String name2, Object value2,\r
- String name3, Object value3) throws IOException\r
- {\r
- setParameter(name1, value1);\r
- return post(name2, value2, name3, value3);\r
- }\r
-\r
- /**\r
- * post the POST request to the server, with the specified parameters\r
- * @param name1 first parameter name\r
- * @param value1 first parameter value\r
- * @param name2 second parameter name\r
- * @param value2 second parameter value\r
- * @param name3 third parameter name\r
- * @param value3 third parameter value\r
- * @param name4 fourth parameter name\r
- * @param value4 fourth parameter value\r
- * @return input stream with the server response\r
- * @throws IOException\r
- * @see setParameter\r
- */\r
- public InputStream post(String name1, Object value1, String name2, Object value2,\r
- String name3, Object value3, String name4, Object value4) throws IOException\r
- {\r
- setParameter(name1, value1);\r
- return post(name2, value2, name3, value3, name4, value4);\r
- }\r
-\r
- /**\r
- * post the POST request specified URL, with the specified parameter\r
- * @param name parameter name\r
- * @param value parameter value\r
- * @return input stream with the server response\r
- * @throws IOException\r
- * @see setParameter\r
- */\r
- public static InputStream post(URL url, String name1, Object value1) throws IOException {\r
- return new FormPoster(url).post(name1, value1);\r
- }\r
-\r
- /**\r
- * post the POST request to specified URL, with the specified parameters\r
- * @param name1 first parameter name\r
- * @param value1 first parameter value\r
- * @param name2 second parameter name\r
- * @param value2 second parameter value\r
- * @return input stream with the server response\r
- * @throws IOException\r
- * @see setParameter\r
- */\r
- public static InputStream post(URL url, String name1, Object value1,\r
- String name2, Object value2) throws IOException\r
- {\r
- return new FormPoster(url).post(name1, value1, name2, value2);\r
- }\r
-\r
- /**\r
- * post the POST request to specified URL, with the specified parameters\r
- * @param name1 first parameter name\r
- * @param value1 first parameter value\r
- * @param name2 second parameter name\r
- * @param value2 second parameter value\r
- * @param name3 third parameter name\r
- * @param value3 third parameter value\r
- * @return input stream with the server response\r
- * @throws IOException\r
- * @see setParameter\r