Connection to a URL from within an applet using Apache's HttpClient vs using the JDK's URLConnection
问题 In the following code, I have verified that connecting to a URL from within an applet preserves the browser's session if JDK's URLConnection class is used. However, this is not the case if Apache's HttpClient library is used. Does anyone know why? Alternatively, is there a way for me to set the connection instance to be used by an HttpClient instance? import java.applet.Applet; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net