I want to run a loadtest on a RestAPI which I can access via below java
name = "username";
String password = "password";
String authString = name + ":" + password;
byte[] authEncBytes = Base64.getEncoder().encode(authString.getBytes()); //
String authStringEnc = new String(authEncBytes);
URL url = new URL(urlStr);
URLConnection urlConnection = url.openConnection();
urlConnection.setRequestProperty("Authorization", "Basic " + authStringEnc);
But in jmeter I am not able add this, new to jmeter please help.