URL website = new URL("http://serverapi.respect-shoes.kz/ServerAPI/hs/Konversia");
URLConnection yc = website.openConnection();
yc.setRequestProperty("Authorization", "Basic " + (new sun.misc.BASE64Encoder().encode("<username>:<password>".getBytes())));
BufferedReader in = new BufferedReader(new InputStreamReader(yc.getInputStream()));
URL url = new URL(webpage);
CookieHandler.setDefault(new CookieManager(null, CookiePolicy.ACCEPT_ALL));
URLConnection urlConnection = url.openConnection();
InputStream is = urlConnection.getInputStream();