src/main/java/dev/gardeningtool/namemc/web/Request.java
@SneakyThrows
    public void prepare() {
        connection.addRequestProperty("User-Agent", "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0");
        connection.setRequestMethod("GET");
    }
/**
     * Sets the user agent and request method
     */
Sets the user agent and request method
Sets the user agent and request method
@SneakyThrows
    public void prepare() {
        connection.addRequestProperty("User-Agent", "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0");
        connection.setRequestMethod("GET");
    }
@ SneakyThrows public void prepare ( ) { connection . addRequestProperty ( "User-Agent" , "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0" ) ; connection . setRequestMethod ( "GET" ) ; }
Sets the user agent and request method
Sets the user agent and request method