public class HttpRequestSender extends Object
| 构造器和说明 |
|---|
HttpRequestSender() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getResponseByGet(String url) |
static String |
getResponseByGet(String url,
int connTimeOut,
int readTimeout) |
static String |
getResponseByGet(String url,
List<String> parameter,
String paraType) |
static String |
getResponseByPost(String url) |
static String |
getResponseByPost(String url,
List<String> parameter,
String paramType) |
static int |
getResponseCodeByGet(String url) |
static int |
getResponseCodeByPost(String url) |
static com.meterware.httpunit.WebResponse |
getResponseObjectByGet(String url) |
static com.meterware.httpunit.WebResponse |
getResponseObjectByPost(String url) |
static com.meterware.httpunit.WebResponse |
getResponseObjectByPost(String url,
List<String> parameter,
String paraType) |
static void |
main(String[] args) |
public static String getResponseByPost(String url, List<String> parameter, String paramType) throws Exception
Exceptionpublic static String getResponseByGet(String url, List<String> parameter, String paraType) throws Exception
Exceptionpublic static com.meterware.httpunit.WebResponse getResponseObjectByPost(String url, List<String> parameter, String paraType) throws Exception
Exceptionpublic static String getResponseByGet(String url, int connTimeOut, int readTimeout) throws Exception
Exceptionpublic static com.meterware.httpunit.WebResponse getResponseObjectByGet(String url) throws Exception
Exceptionpublic static com.meterware.httpunit.WebResponse getResponseObjectByPost(String url) throws Exception
Exceptionpublic static int getResponseCodeByGet(String url) throws Exception
Exceptionpublic static int getResponseCodeByPost(String url) throws Exception
ExceptionCopyright © 2015. All rights reserved.