java - Could not find HttpResponse in httpclient 4.3.3 -


I try to implement a simple http program which sends the request and receives the response from the given URL. For this, I use httpclient 4.3. Jarars add to my project as an external library. But the problem is, I could not get the HTTPRPS pension in the jar file. And I also want to handle NTLM authentication in this application. Please help me

Sample code:

  HTTP client client = http clientbilder.credit (). Build (); HTTPGet Request = New HTTP Gate ("https://www.google.com/?q=java"); {Try HttpResponse response = client.execute (request); Println (response.getStatusLine ()); } Hold (exception e) {e.printStackTrace (); }  

screenshot


Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -