新浪微博java开发自动获取code

根据网上提供的相关代码自动获取code时,返回状态并不是302,而是200,应该是没发生跳转:
List headers = new ArrayList ();
headers.add(new Header("Referer", "https://api.weibo.com/oauth2/authorize?client_id=" + clientId + "&redirect_uri=" + redirectURI + "&response_type=code"));

headers.add(new Header("Host", "login.sina.com.cn"));

headers.add(new Header("User-Agent","Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"));

HttpClient client = new HttpClient();
client.getHostConfiguration().getParams().setParameter("http.default-headers", headers);

    client.executeMethod(postMethod);
            int status = postMethod.getStatusCode();
    System.out.println(status);  
    if (status != 302)  
    {  
        System.out.println("token刷新失败");  
        return null;  
    }
            根据网上部分人的解释,是有一个新的参数,ticket没有提交过去,请问有没有人解决了,谢谢大家的帮助。

http://bbs.csdn.net/topics/390185694/

请问这个问题解决了没 ,遇到同样的问题了

请问博主ticaket这个问题解决了吗?现在开发遇见同样的问题

也是这个问题,请求认证页面返回200.没有进行登陆操作