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

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

sql - PostgreSQL automatically update row at specific date -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -