Like Rene, I am not sure about WOHTTPConnection and https. Looking at code that had to post content to other servers we use the java.net classes:

URL url = new URL("...");
HttpURLConnection conn = (HttpURLConnection)url.openConnection();
...

And then we used a OutputStreamWriter to write our post data.

Michael

On 9/30/2015 5:27 AM, René Bock wrote:
Hi Benjamin,

as far as I remember, there is no possibility to use https with
WOHTTPConnection.


we use apaches httpclient library instead.  The necessary jars are
included in ERJars...



Am 30.09.2015 um 13:48 schrieb Benjamin Steiner <[email protected]
<mailto:[email protected]>>:

Hi List

At the moment, our application is sending a POST request with
WOHTTPConnection. Now our customer wants us to send it via HTTPS.
Is there a possibility to do that with WOHTTPConnection or are there
any other ways to do it?

Thanks,
Beni

Applicationapplication= (Application)Application.application();
WORequest request = new WORequest("POST", application.mondPath(),
"HTTP/1.0", null, xml, null);
request.setHeader( authHeaderContent, "Authorization" );
request.setHeader( application.mondHost(), "host" );
request.setHeader( "Java/1.6", "user-agent" );
request.setHeader( "text/xml", "content-type" );
WOHTTPConnection connection = new
WOHTTPConnection(application.mondHost(), application.mondPort());
connection.sendRequest( request );
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected]
<mailto:[email protected]>)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/bock%40salient.de

This email sent to [email protected]


Mit freundlichem Gruß,

René Bock
Software Engineering

--
salient doremus

salient GmbH
Kontorhaus -  Lindleystraße 12
60314 Frankfurt Main

Fon +49 (0)69 - 650096 -0, Durchwahl: - 18, Fax: -70

http://www.salient.de
http://www.doremus.com
http://www.openforms.de

Geschäftsführer: Peter Biler, Alexander Gerling, Lars Ohlerich
Amtsgericht Frankfurt Main, HRB 48693

// Neuer Schwung auf allen Endgeräten für den Automobilclub von
Deutschland: http://www.avd.de/



  _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/mhast%40desertsky.com

This email sent to [email protected]


--
Tel: (602) 279-4600 ext: 635
Desert Sky Software: www.desertsky.com
    Specializing in the Development and Hosting of
    e-Business Applications.

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to