• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: There is not WOHTTPSConnection.... how then?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: There is not WOHTTPSConnection.... how then?


  • Subject: Re: There is not WOHTTPSConnection.... how then?
  • From: "Morris, Mark via Webobjects-dev" <email@hidden>
  • Date: Wed, 23 Oct 2019 14:46:25 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=experian.com; dmarc=pass action=none header.from=experian.com; dkim=pass header.d=experian.com; 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=FlUkLtKXqgbpGDvYQQM+FEj8XjCMWUF2yPGISgKiNZI=; b=WaZLDXbP88GH4iS8nImOuIX72uYVxphMHW7G/00JHvCg2lWgJhQuMc+OR+PxdZK/+qUTw+fnXWkvZ3q3DD9T3kyel9SZCPoPhHKD9sp0u5r507Oe9NTPmisOjL0Eo313SzNe2/qJtYNIWse7UV4Mos4Em4k4mt1v1Bq9v0vAgzs9PmCgxTev9Ai3h7atE9xuNjR1+ZMdY6QKRa1nqZrAdhbkZliGi3TJ5g9LlyP7qa9LWOFzO0UvG/fbupvugIKoMmeJ3AhM3JihAJMuVQ9R3QABHYZ1hFeTefu1Cp8y7eEdRjUb/6VNVwnQYGmgkkGy/h9HXrCFdZKnOPP67hzJiw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XQGRjNEV3rK1+I/KO+DJv83IFlE9Fxf0AGgh+9eLfN/0Dj3uWR9doA0nQN9Zf4/ISJMCLXoW6AQdMOdj3wepwFYD6iganwTOQnfCQKyUi5Y4pmky7rlx9/Q7ort+t8ldcaR2QuNacRygNIa5y8psFXI38kVYDyMj0FJfRlgP1YfQ0eKpFOB3tHSbMWv3v7IJSn002wnP5G4CTZiJUWG2YWdyEdgtCbr0Yad2znC56o6iHVxKlH+ZqKjychAFFvhEXkX3uc1kOrSNDKl5J2qs/UochZ1jS6NIZkMRX5gusKELkmYYcGfft3n954R7P0diwbweO8VnFVGrVsalKKhwmg==
  • Thread-topic: There is not WOHTTPSConnection.... how then?

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)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: There is not WOHTTPSConnection.... how then?
      • From: Jérémy DE ROYER via Webobjects-dev <email@hidden>
References: 
 >There is not WOHTTPSConnection.... how then? (From: Markus Ruggiero via Webobjects-dev <email@hidden>)
 >Re: There is not WOHTTPSConnection.... how then? (From: Maik Musall via Webobjects-dev <email@hidden>)
 >Re: There is not WOHTTPSConnection.... how then? (From: Maik Musall via Webobjects-dev <email@hidden>)

  • Prev by Date: Re: There is not WOHTTPSConnection.... how then?
  • Next by Date: Re: There is not WOHTTPSConnection.... how then?
  • Previous by thread: Re: There is not WOHTTPSConnection.... how then?
  • Next by thread: Re: There is not WOHTTPSConnection.... how then?
  • Index(es):
    • Date
    • Thread