1. <!-- https://mvnrepository.com/artifact/org.jodd/jodd-http -->
    2. <dependency>
    3. <groupId>org.jodd</groupId>
    4. <artifactId>jodd-http</artifactId>
    5. <version>6.2.0</version>
    6. </dependency>
    1. import .http.HttpRequest;
    2. import jodd.http.HttpResponse;
    3. import java.net.MalformedURLException;
    4. import java.net.URISyntaxException;
    5. public class UrlBad05 {
    6. public static void main(String[] argv) throws MalformedURLException, URISyntaxException, ClassNotFoundException {
    7. HttpRequest httpRequest = HttpRequest.get("http://localhost:8013");
    8. HttpResponse response = httpRequest.send();
    9. System.out.println(response);
    10. }
    11. }