alexrainman / ModernHttpClient

ModernHttpClient
MIT License
126 stars 28 forks source link

Allow http communication #35

Closed jded76 closed 5 years ago

jded76 commented 5 years ago

Is there any chance that you will allow http communication again in the new version? I'm using this library for internal communication (not internet) and I'm not using https.

I know this is not the right way, but the overhead of installing (and renewing) certificates is not an option in our situation (due to lack of IT Department).

Anyway thank you for your time and effort.

alexrainman commented 5 years ago

In iOS you can use NSAppTransportSecurity to allow plaintext HTTP but, in Android I have to make a code change to support that.

jded76 commented 5 years ago

Thank you again, but unfortunately, I'm only using Android.

I already saw that the OKHttp supports that, with the CLEARTEXT ConnectionSpec, but I couldn't do it without a code change from you.

That's why I asked you if you are planning to do anything about it.

As an idea, you don't have to disable TLS. You can allow TLS with CLEARTEXT simultaneously.

alexrainman commented 5 years ago

Version 3.3.0 is out.

jded76 commented 5 years ago

Thank you very much!

I'll have a look as soon as I get home.

alexrainman commented 5 years ago

Releasing 3.3.1 to follow your advice.

jded76 commented 5 years ago

Good job! It's working with http again. Thank you very much!