Re: There is not WOHTTPSConnection.... how then?
Re: There is not WOHTTPSConnection.... how then?
- Subject: Re: There is not WOHTTPSConnection.... how then?
- From: Jérémy DE ROYER via Webobjects-dev <email@hidden>
- Date: Wed, 23 Oct 2019 15:47:29 +0000
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ingencys.net; dmarc=pass action=none header.from=ingencys.net; dkim=pass header.d=ingencys.net; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0rxS6u4qEcXWbkDEbvn/TpaeSxcmO5sKUu67oUEkNzk=; b=Do0kHIT8cbr5iw4eK39L0LY0dF8YXACtHAY4KQBrgE0t+Ivzkk3ygzBqt1i2n1qWyRWGyQLAQwLUTnKbjlg8N8+bXNFt4BN/8PHCv7B6xIbHb/Qyz03SVKXbT1Oaymqq1nMM/dCeQ3YTDNGpnabqBiB3QnDi0GIAJXmMjzusEKSJWLCocWZWzT7JWcXx6jlQc+62PPChteu7cwd+NT7xJpDidajLXwWKe/2z5by859od0hemXUmvp/bKbMnxvXTpL7Yei7G2XnJjAibYdys5Lf0Z7GHzAJw8MZwbFifdT4K64rAQPCGkjTGeo5yTfJ8Zkphtw24r/LPnOE3Hq58m2Q==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B1ACZJWpSE87WRzrTTQtsfjAGhlhP7aoro5NWBgUF9mLH9c+9mg4nw2/Tf0Vj2bIqoamPm4iN/qrv+/LveqShXr9IcCpS7G6H5EJCynSsjAvfCJFMj3BZpNwb2XIDi0LHhxP/3GWxchD/CRxdCm3yG9CS8c7ZJAHnTjeM+2qSkJ0fQD6tfqhbrmosiTDKoh/iK5HohivD1f4/u/xM/sHAJ+qcsZSMyiCX7OioY24ynwRE10GMfjgAR28xwT0rK5RtEyNRcACBW0A6c4Dpa1EhCxkPtmV8G8sNvflvLl6APMlYohtM7J6HKezQ14scm887I/opPzqxxIZvva9ljoogw==
- Thread-topic: There is not WOHTTPSConnection.... how then?
Hello,
I’m using apache httpclient too
Jérémy
Le 23 oct. 2019 à 16:46, Morris, Mark via Webobjects-dev
<email@hidden<mailto:email@hidden>> a écrit
:
When I need to connect to another server from my WO apps, I just use java’s
HttpsURLConnection or HttpURLConnection.
Regards,
Mark
On Oct 23, 2019, at 8:53 AM, Maik Musall via Webobjects-dev
<email@hidden<mailto:email@hidden>> wrote:
Oh,
I misunderstood. You’re not uploading to *your* application’s server, but the
application is uploading to somewhere else.
In that case, I’d use apache http client, which has all I need. I can even put
custom pinned certificates in a local keystore and use that. Not sure about
client certificates though.
Maik
Am 23.10.2019 um 15:28 schrieb Maik Musall via Webobjects-dev
<email@hidden<mailto:email@hidden>>:
Hi Markus,
why not use a reverse proxy in front of that, terminating TLS and talking plain
http to the app internally? I though everyone is doing that. Certainly we are.
Maik
Am 23.10.2019 um 12:01 schrieb Markus Ruggiero via Webobjects-dev
<email@hidden<mailto:email@hidden>>:
I need to upload data to a server via https. I have it working for http (no
"s") using WOHttpConnection. But there is none with "S". The customer wants to
switch to secure connection. How'd I do that?
Here is my code for the non-secure upload:
WORequest request = new WORequest("POST", application.docUploadPath(),
"HTTP/1.1", null, xml, null);
request.setHeader( authHeaderContent, "Authorization" );
request.setHeader( application.docUploadHost(), "host" );
request.setHeader( "Java/1.8", "user-agent" );
request.setHeader( "text/xml", "content-type" );
WOHTTPConnection connection = new WOHTTPConnection(application.docUploadHost(),
application.docUploadPort());
boolean sendRequestSucceeded = connection.sendRequest( request );
Thanks for any pointer or even some code snippets.
---markus---
_______________________________________________
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<mailto:email@hidden>
_______________________________________________
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<mailto:email@hidden>
_______________________________________________
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<mailto:email@hidden>
_______________________________________________
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
_______________________________________________
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