Skip to content

Commit f6a1ef3

Browse files
committed
Update links to https://jsoup.org/
1 parent 9655d89 commit f6a1ef3

7 files changed

Lines changed: 30 additions & 30 deletions

File tree

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ jsoup is designed to deal with all varieties of HTML found in the wild; from pri
1414

1515
jsoup runs on Java 1.5 and up.
1616

17-
See http://jsoup.org/ for downloads and documentation.
17+
See https://jsoup.org/ for downloads and documentation.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
</executions>
124124
<configuration>
125125
<instructions>
126-
<Bundle-DocURL>http://jsoup.org/</Bundle-DocURL>
126+
<Bundle-DocURL>https://jsoup.org/</Bundle-DocURL>
127127
</instructions>
128128
</configuration>
129129
</plugin>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/**
2-
Contains example programs and use of jsoup. See the <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2FJavaProgrammerLB%2Fjsoup%2Fcommit%2F%3Cspan+class%3D"x x-first x-last">http://jsoup.org/cookbook/">jsoup cookbook</a>.
2+
Contains example programs and use of jsoup. See the <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2FJavaProgrammerLB%2Fjsoup%2Fcommit%2F%3Cspan+class%3D"x x-first x-last">https://jsoup.org/cookbook/">jsoup cookbook</a>.
33
*/
44
package org.jsoup.examples;

src/main/javadoc/overview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h1>jsoup: Java HTML parser that makes sense of real-world HTML soup.</h1>
2323
<p>jsoup is designed to deal with all varieties of HTML found in the wild; from pristine and validating,
2424
to invalid tag-soup; jsoup will create a sensible parse tree.</p>
2525

26-
<p>See <a href="http://jsoup.org/"><b>jsoup.org</b></a> for downloads, documentation, and examples...</p>
26+
<p>See <a href="https://jsoup.org/"><b>jsoup.org</b></a> for downloads, documentation, and examples...</p>
2727

2828
@author <a href="http://jonathanhedley.com/">Jonathan Hedley</a>
2929

src/test/java/org/jsoup/integration/UrlConnectTest.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class UrlConnectTest {
4040

4141
@Test
4242
public void fetchURl() throws IOException {
43-
String url = "http://jsoup.org"; // no trailing / to force redir
43+
String url = "https://jsoup.org"; // no trailing / to force redir
4444
Document doc = Jsoup.parse(new URL(url), 10*1000);
4545
assertTrue(doc.title().contains("jsoup"));
4646
}
@@ -95,7 +95,7 @@ public void exceptOnUnsupportedProtocol(){
9595

9696
@Test
9797
public void ignoresContentTypeIfSoConfigured() throws IOException {
98-
Document doc = Jsoup.connect("http://jsoup.org/rez/osi_logo.png").ignoreContentType(true).get();
98+
Document doc = Jsoup.connect("https://jsoup.org/rez/osi_logo.png").ignoreContentType(true).get();
9999
assertEquals("", doc.title()); // this will cause an ugly parse tree
100100
}
101101

@@ -184,7 +184,7 @@ public void followsNewTempRedirect() throws IOException {
184184
Connection con = Jsoup.connect("http://direct.infohound.net/tools/307.pl"); // http://jsoup.org
185185
Document doc = con.get();
186186
assertTrue(doc.title().contains("jsoup"));
187-
assertEquals("http://jsoup.org", con.response().url().toString());
187+
assertEquals("https://jsoup.org", con.response().url().toString());
188188
}
189189

190190
@Test
@@ -193,7 +193,7 @@ public void postRedirectsFetchWithGet() throws IOException {
193193
.data("Argument", "Riposte")
194194
.method(Connection.Method.POST);
195195
Connection.Response res = con.execute();
196-
assertEquals("http://jsoup.org", res.url().toExternalForm());
196+
assertEquals("https://jsoup.org", res.url().toExternalForm());
197197
assertEquals(Connection.Method.GET, res.method());
198198
}
199199

@@ -303,7 +303,7 @@ public void doesntRedirectIfSoConfigured() throws IOException {
303303
Connection con = Jsoup.connect("http://direct.infohound.net/tools/302.pl").followRedirects(false);
304304
Connection.Response res = con.execute();
305305
assertEquals(302, res.statusCode());
306-
assertEquals("http://jsoup.org", res.header("Location"));
306+
assertEquals("https://jsoup.org", res.header("Location"));
307307
}
308308

309309
@Test
@@ -529,12 +529,12 @@ public void postJpeg() throws IOException {
529529
@Test
530530
public void handles201Created() throws IOException {
531531
Document doc = Jsoup.connect("http://direct.infohound.net/tools/201.pl").get(); // 201, location=jsoup
532-
assertEquals("http://jsoup.org", doc.location());
532+
assertEquals("https://jsoup.org", doc.location());
533533
}
534534

535535
@Test
536536
public void fetchToW3c() throws IOException {
537-
String url = "http://jsoup.org";
537+
String url = "https://jsoup.org";
538538
Document doc = Jsoup.connect(url).get();
539539

540540
W3CDom dom = new W3CDom();
@@ -595,23 +595,23 @@ public void sendHeadRequest() throws IOException {
595595

596596
@Test
597597
public void fetchViaHttpProxy() throws IOException {
598-
String url = "http://jsoup.org";
598+
String url = "https://jsoup.org";
599599
Proxy proxy = new Proxy(Proxy.Type.HTTP, InetSocketAddress.createUnresolved("localhost", 8888));
600600
Document doc = Jsoup.connect(url).proxy(proxy).get();
601601
assertTrue(doc.title().contains("jsoup"));
602602
}
603603

604604
@Test
605605
public void fetchViaHttpProxySetByArgument() throws IOException {
606-
String url = "http://jsoup.org";
606+
String url = "https://jsoup.org";
607607
Document doc = Jsoup.connect(url).proxy("localhost", 8888).get();
608608
assertTrue(doc.title().contains("jsoup"));
609609
}
610610

611611
@Test
612612
public void invalidProxyFails() throws IOException {
613613
boolean caught = false;
614-
String url = "http://jsoup.org";
614+
String url = "https://jsoup.org";
615615
try {
616616
Document doc = Jsoup.connect(url).proxy("localhost", 8889).get();
617617
} catch (IOException e) {
@@ -622,7 +622,7 @@ public void invalidProxyFails() throws IOException {
622622

623623
@Test
624624
public void proxyGetAndSet() throws IOException {
625-
String url = "http://jsoup.org";
625+
String url = "https://jsoup.org";
626626
Proxy proxy = new Proxy(Proxy.Type.HTTP, InetSocketAddress.createUnresolved("localhost", 8889)); // invalid
627627
final Connection con = Jsoup.connect(url).proxy(proxy);
628628

@@ -635,7 +635,7 @@ public void proxyGetAndSet() throws IOException {
635635
@Test
636636
public void throwsIfRequestBodyForGet() throws IOException {
637637
boolean caught = false;
638-
String url = "http://jsoup.org";
638+
String url = "https://jsoup.org";
639639
try {
640640
Document doc = Jsoup.connect(url).requestBody("fail").get();
641641
} catch (IllegalArgumentException e) {

src/test/java/org/jsoup/nodes/NodeTest.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class NodeTest {
3636

3737
@Test public void setBaseUriIsRecursive() {
3838
Document doc = Jsoup.parse("<div><p></p></div>");
39-
String baseUri = "http://jsoup.org";
39+
String baseUri = "https://jsoup.org";
4040
doc.setBaseUri(baseUri);
4141

4242
assertEquals(baseUri, doc.baseUri());
@@ -45,23 +45,23 @@ public class NodeTest {
4545
}
4646

4747
@Test public void handlesAbsPrefix() {
48-
Document doc = Jsoup.parse("<a href=/foo>Hello</a>", "http://jsoup.org/");
48+
Document doc = Jsoup.parse("<a href=/foo>Hello</a>", "https://jsoup.org/");
4949
Element a = doc.select("a").first();
5050
assertEquals("/foo", a.attr("href"));
51-
assertEquals("http://jsoup.org/foo", a.attr("abs:href"));
51+
assertEquals("https://jsoup.org/foo", a.attr("abs:href"));
5252
assertTrue(a.hasAttr("abs:href"));
5353
}
5454

5555
@Test public void handlesAbsOnImage() {
56-
Document doc = Jsoup.parse("<p><img src=\"/rez/osi_logo.png\" /></p>", "http://jsoup.org/");
56+
Document doc = Jsoup.parse("<p><img src=\"/rez/osi_logo.png\" /></p>", "https://jsoup.org/");
5757
Element img = doc.select("img").first();
58-
assertEquals("http://jsoup.org/rez/osi_logo.png", img.attr("abs:src"));
58+
assertEquals("https://jsoup.org/rez/osi_logo.png", img.attr("abs:src"));
5959
assertEquals(img.absUrl("src"), img.attr("abs:src"));
6060
}
6161

6262
@Test public void handlesAbsPrefixOnHasAttr() {
6363
// 1: no abs url; 2: has abs url
64-
Document doc = Jsoup.parse("<a id=1 href="proxy.php?url=https%3A%2F%2Fgithub.com%2Ffoo">One</a> <a id=2 href="proxy.php?url=https%3A%2F%2Fgithub.com%2FJavaProgrammerLB%2Fjsoup%2Fcommit%2F%3Cspan+class%3D"x x-first x-last">http://jsoup.org/'>Two</a>");
64+
Document doc = Jsoup.parse("<a id=1 href="proxy.php?url=https%3A%2F%2Fgithub.com%2Ffoo">One</a> <a id=2 href="proxy.php?url=https%3A%2F%2Fgithub.com%2FJavaProgrammerLB%2Fjsoup%2Fcommit%2F%3Cspan+class%3D"x x-first x-last">https://jsoup.org/'>Two</a>");
6565
Element one = doc.select("#1").first();
6666
Element two = doc.select("#2").first();
6767

@@ -71,7 +71,7 @@ public class NodeTest {
7171

7272
assertTrue(two.hasAttr("abs:href"));
7373
assertTrue(two.hasAttr("href"));
74-
assertEquals("http://jsoup.org/", two.absUrl("href"));
74+
assertEquals("https://jsoup.org/", two.absUrl("href"));
7575
}
7676

7777
@Test public void literalAbsPrefix() {
@@ -116,13 +116,13 @@ public void handlesAbsOnProtocolessAbsoluteUris() {
116116
Test for an issue with Java's abs URL handler.
117117
*/
118118
@Test public void absHandlesRelativeQuery() {
119-
Document doc = Jsoup.parse("<a href="proxy.php?url=https%3A%2F%2Fgithub.com%2FJavaProgrammerLB%2Fjsoup%2Fcommit%2Ff6a1ef346c74ca3305ef5f198ac953a4fc208813%3Ffoo">One</a> <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2FJavaProgrammerLB%2Fjsoup%2Fcommit%2Fbar.html%3Ffoo">Two</a>", "http://jsoup.org/path/file?bar");
119+
Document doc = Jsoup.parse("<a href="proxy.php?url=https%3A%2F%2Fgithub.com%2FJavaProgrammerLB%2Fjsoup%2Fcommit%2Ff6a1ef346c74ca3305ef5f198ac953a4fc208813%3Ffoo">One</a> <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2FJavaProgrammerLB%2Fjsoup%2Fcommit%2Fbar.html%3Ffoo">Two</a>", "https://jsoup.org/path/file?bar");
120120

121121
Element a1 = doc.select("a").first();
122-
assertEquals("http://jsoup.org/path/file?foo", a1.absUrl("href"));
122+
assertEquals("https://jsoup.org/path/file?foo", a1.absUrl("href"));
123123

124124
Element a2 = doc.select("a").get(1);
125-
assertEquals("http://jsoup.org/path/bar.html?foo", a2.absUrl("href"));
125+
assertEquals("https://jsoup.org/path/bar.html?foo", a2.absUrl("href"));
126126
}
127127

128128
@Test public void absHandlesDotFromIndex() {

src/test/java/org/jsoup/select/ElementsTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class ElementsTest {
5252
}
5353

5454
@Test public void hasAbsAttr() {
55-
Document doc = Jsoup.parse("<a id=1 href="proxy.php?url=https%3A%2F%2Fgithub.com%2Ffoo">One</a> <a id=2 href="proxy.php?url=https%3A%2F%2Fgithub.com%2FJavaProgrammerLB%2Fjsoup%2Fcommit%2F%3Cspan+class%3D"x x-first x-last">http://jsoup.org'>Two</a>");
55+
Document doc = Jsoup.parse("<a id=1 href="proxy.php?url=https%3A%2F%2Fgithub.com%2Ffoo">One</a> <a id=2 href="proxy.php?url=https%3A%2F%2Fgithub.com%2FJavaProgrammerLB%2Fjsoup%2Fcommit%2F%3Cspan+class%3D"x x-first x-last">https://jsoup.org'>Two</a>");
5656
Elements one = doc.select("#1");
5757
Elements two = doc.select("#2");
5858
Elements both = doc.select("a");
@@ -68,14 +68,14 @@ public class ElementsTest {
6868
}
6969

7070
@Test public void absAttr() {
71-
Document doc = Jsoup.parse("<a id=1 href="proxy.php?url=https%3A%2F%2Fgithub.com%2Ffoo">One</a> <a id=2 href="proxy.php?url=https%3A%2F%2Fgithub.com%2FJavaProgrammerLB%2Fjsoup%2Fcommit%2F%3Cspan+class%3D"x x-first x-last">http://jsoup.org'>Two</a>");
71+
Document doc = Jsoup.parse("<a id=1 href="proxy.php?url=https%3A%2F%2Fgithub.com%2Ffoo">One</a> <a id=2 href="proxy.php?url=https%3A%2F%2Fgithub.com%2FJavaProgrammerLB%2Fjsoup%2Fcommit%2F%3Cspan+class%3D"x x-first x-last">https://jsoup.org'>Two</a>");
7272
Elements one = doc.select("#1");
7373
Elements two = doc.select("#2");
7474
Elements both = doc.select("a");
7575

7676
assertEquals("", one.attr("abs:href"));
77-
assertEquals("http://jsoup.org", two.attr("abs:href"));
78-
assertEquals("http://jsoup.org", both.attr("abs:href"));
77+
assertEquals("https://jsoup.org", two.attr("abs:href"));
78+
assertEquals("https://jsoup.org", both.attr("abs:href"));
7979
}
8080

8181
@Test public void classes() {

0 commit comments

Comments
 (0)