Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
试图获取页面
http:www.thecinemas.aw/main/?date=2012-11-01
没有任何作用。但
http://www.thecinemas.aw/main/movies/details.html?id=1421
确实有效。
我能看到的唯一区别是-在第一个中使用减号 ( )。
-
关于如何解决这个问题的任何建议?
第一个 URL 应该以 开头http://,否则协议前缀无效。
http://
采用:
URI uri = new URI("http", "www.thecinemas.aw", "/main/?date=2012-11-01",null); URL url = uri.toURL();