httpClient的post请求重定向302错误解决

httpClient的post请求重定向302错误解决

public class TestLogin {
   
    public static void main(String args[]) {
   
        try {
   
            HttpClient client = HttpClients.createDefault();
            login(client);
        } catch (Exception e) {
   
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
 
    public static void login( HttpClient client) throws Exce

你可能感兴趣的:(其他,httpClient)