I have an https web page that I need to access and get some file, I am using Java 1.7_45 and apache httpclient 4.5.1 when I execute the client request I get the error(If I change to Java 8 it works, but I cannot change it to Java 8): I tried everything that I found on the internet as add
Tag: apache-httpcomponents
How can I create an empty dummy HttpResponse
I am using org.apache.http.HttpResponse I want to create an empty dummy resposne, I am going to use this to return when errors occur instead of passing back null. I tried to create one and it has lost of weird params. Can someone tell me how to create one. Answer Just implement HttpResponse with no-op methods.