What's the header file for BasicHttpRequest? I am using Apache HttpComponents.
I'm trying to make a simple program, but I am getting this error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.http.impl.client.AbstractHttpClient.(AbstractHttpClient.java:159) at org.apache.http.impl.client.DefaultHttpClient.(DefaultHttpClient.java:178) at test.main(test.java:24) Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
What is the header file for this line:
HttpRequest request = new BasicHttpRequest("GET", "/",HttpVersion.HTTP_1_1);