https connection

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top