E
epicwinter
import java.net.*;
import com.sun.net.ssl.internal.www.protocol.https.*;
import com.sun.net.ssl.internal.ssl.*;
I need to make an https connection containing multi-part form data. I
have done https requests in java some time ago using this technique:
java.security.Security.addProvider( new
com.sun.net.ssl.internal.ssl.Provider() );
System.setProperty("java.protocol.handler.pkgs",
"com.sun.net.ssl.internal.www.protocol");
URL url = new URL(postString);
com.sun.net.ssl.HttpsURLConnection connection =
(com.sun.net.ssl.HttpsURLConnection)url.openConnection();
..
..
..
But I believe this is outdated. Does anyone have any examples of
sending multi-part form data through an https connection?
import com.sun.net.ssl.internal.www.protocol.https.*;
import com.sun.net.ssl.internal.ssl.*;
I need to make an https connection containing multi-part form data. I
have done https requests in java some time ago using this technique:
java.security.Security.addProvider( new
com.sun.net.ssl.internal.ssl.Provider() );
System.setProperty("java.protocol.handler.pkgs",
"com.sun.net.ssl.internal.www.protocol");
URL url = new URL(postString);
com.sun.net.ssl.HttpsURLConnection connection =
(com.sun.net.ssl.HttpsURLConnection)url.openConnection();
..
..
..
But I believe this is outdated. Does anyone have any examples of
sending multi-part form data through an https connection?