@@ -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 ) {
0 commit comments