I was able to get to past NTLM using following HttpClient class but can't figure out how to get the authorization header with ntlm token/String out of it. Since gatling does get info out when using recorder, can you point me into some direction as to what can be done.
Here is the code I used:
DefaultHttpClient httpclient = new DefaultHttpClient();
List<String> authpref = new ArrayList<String>();
authpref.add(AuthPolicy.NTLM);
httpclient.getParams().setParameter(AuthPNames.TARGET_AUTH_PREF, authpref);
NTCredentials creds = new NTCredentials("userid", "Password", "", "corp");
httpclient.getCredentialsProvider().setCredentials(AuthScope.ANY, creds);
HttpHost target = new HttpHost("
work.org");
HttpContext localContext = new BasicHttpContext();
HttpGet httpget = new HttpGet("
http://work.org/web");
HttpResponse response = httpclient.execute(target, httpget, localContext);
int statusCode = response.getStatusLine().getStatusCode();
System.out.println("Status Code:" + statusCode);