public class HttpKit extends Object
Modifier and Type | Method and Description |
---|---|
static String |
get(String url) |
static String |
get(String url,
Map<String,String> queryParas) |
static String |
get(String url,
Map<String,String> queryParas,
Map<String,String> headers)
Send GET request
|
static String |
post(String url,
Map<String,String> queryParas,
String data) |
static String |
post(String url,
Map<String,String> queryParas,
String data,
Map<String,String> headers)
Send POST request
|
static String |
post(String url,
String data) |
static String |
post(String url,
String data,
Map<String,String> headers) |
static String |
readData(javax.servlet.http.HttpServletRequest request) |
static String |
readIncommingRequestData(javax.servlet.http.HttpServletRequest request)
Deprecated.
|
static void |
setCharSet(String charSet) |
public static void setCharSet(String charSet)
public static String get(String url, Map<String,String> queryParas, Map<String,String> headers)
public static String post(String url, Map<String,String> queryParas, String data, Map<String,String> headers)
public static String readData(javax.servlet.http.HttpServletRequest request)
@Deprecated public static String readIncommingRequestData(javax.servlet.http.HttpServletRequest request)
Copyright © 2018. All rights reserved.