# JSSE Post Problem/Question

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

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Jan Luehe: "Re: Problem with storing key in KeyStore"
- Previous message: Jan Luehe: "Re: Problem using SunJCE in an applet"
- Next in thread: Jeff Nisewanger: "Re: JSSE Post Problem/Question"

    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

- Next message: Jan Luehe: "Re: Problem with storing key in KeyStore"
- Previous message: Jan Luehe: "Re: Problem using SunJCE in an applet"
- Next in thread: Jeff Nisewanger: "Re: JSSE Post Problem/Question"