Re: Sending a POST request via HTTPS with WOHTTPConnection
Re: Sending a POST request via HTTPS with WOHTTPConnection
- Subject: Re: Sending a POST request via HTTPS with WOHTTPConnection
- From: Michael Hast <email@hidden>
- Date: Wed, 30 Sep 2015 07:18:06 -0700
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@hidden
<mailto:email@hidden>>:
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@hidden
<mailto:email@hidden>)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden