Hello, I’m using apache httpclient too
Jérémy Le 23 oct. 2019 à 16:46, Morris, Mark via Webobjects-dev <webobjects-dev@lists.apple.com<mailto:webobjects-dev@lists.apple.com>> 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 <webobjects-dev@lists.apple.com<mailto:webobjects-dev@lists.apple.com>> 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 <webobjects-dev@lists.apple.com<mailto:webobjects-dev@lists.apple.com>>: 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 <webobjects-dev@lists.apple.com<mailto:webobjects-dev@lists.apple.com>>: 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 (Webobjects-dev@lists.apple.com<mailto:Webobjects-dev@lists.apple.com>) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/maik%40selbstdenker.ag<https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.apple.com_mailman_options_webobjects-2Ddev_maik-2540selbstdenker.ag&d=DwMFaQ&c=BNNF-YNv0CLLslhP2Bcx5Q&r=R0ZqsewJs3eSJk7vLCqZv0r5kJlLXQLnGTeg9t8MlqA&m=zVJNFErpYNwBK0qYDB4d9nsc5mKkX4nSnM9caX3ApHQ&s=iW2VKRurRldOIPOy3wovO-xts3WeLp-9VhX-zoinl1U&e=> This email sent to m...@selbstdenker.ag<mailto:m...@selbstdenker.ag> _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com<mailto:Webobjects-dev@lists.apple.com>) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/maik%40selbstdenker.ag<https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.apple.com_mailman_options_webobjects-2Ddev_maik-2540selbstdenker.ag&d=DwMFaQ&c=BNNF-YNv0CLLslhP2Bcx5Q&r=R0ZqsewJs3eSJk7vLCqZv0r5kJlLXQLnGTeg9t8MlqA&m=zVJNFErpYNwBK0qYDB4d9nsc5mKkX4nSnM9caX3ApHQ&s=iW2VKRurRldOIPOy3wovO-xts3WeLp-9VhX-zoinl1U&e=> This email sent to m...@selbstdenker.ag<mailto:m...@selbstdenker.ag> _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com<mailto:Webobjects-dev@lists.apple.com>) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/mark.morris%40experian.com This email sent to mark.mor...@experian.com<mailto:mark.mor...@experian.com> _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com<mailto:Webobjects-dev@lists.apple.com>) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/jeremy.deroyer%40ingencys.net This email sent to jeremy.dero...@ingencys.net
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com