Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Http类对https的处理 #815

Closed
Rekoe opened this issue Mar 12, 2015 · 3 comments
Closed

Http类对https的处理 #815

Rekoe opened this issue Mar 12, 2015 · 3 comments
Milestone

Comments

@Rekoe
Copy link
Member

Rekoe commented Mar 12, 2015

Http.disableJvmHttpsCheck();
Response response = Http.get(url);
response.getContent();

https://openapi.360.cn/user/me.json?access_token=1323463692b46eacce7412f3b65877cc54fc6d538db5619b20&fields=id,name,avatar,nick

code大于400 返回的是空数据 没有相应返回值

@zozoh
Copy link
Member

zozoh commented Mar 16, 2015

喔,从 HttpURLConnection 里面 getInputStream 如果是 401,就会抛异常 ...

@Rekoe
Copy link
Member Author

Rekoe commented Mar 16, 2015

但有的时候 需要返回的结果
还是返回数据的比较好

@zozoh zozoh added this to the 1.b.53 milestone Mar 16, 2015
zozoh added a commit that referenced this issue Mar 16, 2015
@zozoh
Copy link
Member

zozoh commented Mar 16, 2015

@Rekoe 必须的,这的确是个 bug

@zozoh zozoh closed this as completed Mar 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants