You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is what the snippet that I use:
private void request(final String path, final String ussr, final String pass) {
final ClientResource resource = new ClientResource(path);
final ChallengeResponse challengeResponse = new ChallengeResponse(ChallengeScheme.HTTP_DIGEST, ussr, pass);
resource.setChallengeResponse(challengeResponse);
resource.setOnResponse(new Uniform() {
@Override
public void handle(Request request, Response response) {
SC.say("Here " + response.toString());
}
});
resource.get(MediaType.APPLICATION_JSON);
}
The text was updated successfully, but these errors were encountered:
This is what the snippet that I use:
private void request(final String path, final String ussr, final String pass) {
final ClientResource resource = new ClientResource(path);
final ChallengeResponse challengeResponse = new ChallengeResponse(ChallengeScheme.HTTP_DIGEST, ussr, pass);
resource.setChallengeResponse(challengeResponse);
resource.setOnResponse(new Uniform() {
@Override
public void handle(Request request, Response response) {
SC.say("Here " + response.toString());
}
});
resource.get(MediaType.APPLICATION_JSON);
}
The text was updated successfully, but these errors were encountered: