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 (); }
Comments
Post a Comment