小编ane*_*eto的帖子

SSL对等在Java中关闭不正确

我需要通过HTTPS协议发出请求.我写了以下代码:

import java.net.HttpURLConnection;
import java.net.URL;

import org.junit.Test;

public class XMLHandlerTest {
    private static final String URL = "https://ancine.band.com.br/xml/pgrt1_dta_20150303.xml";

    @Test
    public void testRetrieveSchedule() {
        try {
            HttpURLConnection connection = (HttpURLConnection) new URL(URL).openConnection();
            connection.setRequestMethod("HEAD");
            int responseCode = connection.getResponseCode();
            System.out.println(responseCode);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
Run Code Online (Sandbox Code Playgroud)

我得到了一个带有java.io.EOFException的异常堆栈跟踪:

javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:953)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1343)
    at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1301)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
    at br.com.onebr.onesocial.arte1.service.core.scheduler.Arte1XMLHandlerTest.testRetrieveSchedule(Arte1XMLHandlerTest.java:16)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at …
Run Code Online (Sandbox Code Playgroud)

java ssl

30
推荐指数
3
解决办法
16万
查看次数

如何使用 DRM 下载 MPEG Dash?

是否可以使用 DRM 下载 MPEG Dash 内容?

如何使用 MPD 文件解密?

我尝试下载所有 M4S 片段(音频和视频),但是当我加入片段时,视频无法正常工作。

该站点使用 Widevine 平台进行 DRM。

我也尝试过youtube-dldash-proxy,但还是没有成功。

我在谷歌上搜索,但没有成功。

drm youtube-dl widevine mpeg-dash

8
推荐指数
2
解决办法
2万
查看次数

登录后在Android Captive Portal中打开浏览器

我正在为Android制作一个专属门户网站:

  1. 用户连接到Wi-Fi
  2. 强制门户打开,提供登录信息(/ generate_204的302)
  3. 我发布信息并释放用户使用互联网(204 of/generate_204)
  4. 问题:强制门户关闭,浏览器未打开

我的目的是 - 发布信息后 - 释放用户,关闭强制网络门户并打开浏览器.

我是怎么做到的

android captiveportal

5
推荐指数
1
解决办法
1821
查看次数

标签 统计

android ×1

captiveportal ×1

drm ×1

java ×1

mpeg-dash ×1

ssl ×1

widevine ×1

youtube-dl ×1