JSSE Post Problem/Question

Plymire, Alvan W. (Alvan.Plymire@wpc.frco.com)
Thu, 26 Aug 1999 17:06:41 -0400

From: "Plymire, Alvan W." <Alvan.Plymire@wpc.frco.com>
To: "'java-security@sun.com'" <java-security@Sun.COM>
Subject: JSSE Post Problem/Question
Date: Thu, 26 Aug 1999 17:06:41 -0400

Hi,

I have a program that POSTs data via a URL. When the post is via HTTP,
things work fine, but
when the post is via HTTPS, it does not work. Is there anything special I
have to do for a POST
via SSL? The code I am using is:

URL login = new URL( loginURL ); // starts with https://
URLConnection connection = login.openConnection();
connection.setDoOutput( true );
connection.setRequestProperty( "Content-Type",
"application/x-www.form.urlencoded" );
OutputStream outs = connection.getOutputStream();
OutputStreamWriter out = new OutputStreamWriter( outs );

out.write( post.toString() ); // "post" is a StringBuffer
containing the POST info
out.flush();
out.close();
connection.connect();

I do not have access to the server side. I do receive html back indicating
that there was an error
with the posted data.

Thanks,
Al Plymire