GithubHelp home page GithubHelp logo

Comments (8)

saik0 avatar saik0 commented on June 14, 2024

This is looking like it's going to be non-trivial. We'll probably have to extend AndroidHttpClient and override newInstance()

from datadroid.

saik0 avatar saik0 commented on June 14, 2024

And of course AndroidHttpClient is final, grrrr. Are we against implementing HttpClient ourselves using AndroidHttpClient as a base?

from datadroid.

foxykeep avatar foxykeep commented on June 14, 2024

I'm currently completely rewriting my NetworkConnection class to switch automatically between AndroidHttpClient and HttpURLConnection based on the Android version (cf http://android-developers.blogspot.fr/2011/09/androids-http-clients.html), as well as implementing another version for 1.6 as AndroidHttpClient is not available for these versions.

So I'll see if I can add the verify ssl option at the same time

from datadroid.

saik0 avatar saik0 commented on June 14, 2024

great! I didn't want to make any huge changes like that as a contributor but that's perfect. I was also going to suggest using a Builder sort of class but looks like you're one step ahead of me again ;)

from datadroid.

saik0 avatar saik0 commented on June 14, 2024

You might reduce the complexity by using your own HttpClient impl on all < api 10, AndroidHttpClient is just for convenience, if we're doing the hard work ourselves there's no need for it. No?

from datadroid.

foxykeep avatar foxykeep commented on June 14, 2024

That was pretty much what I was thinking for API < 10 :)

from datadroid.

saik0 avatar saik0 commented on June 14, 2024

Not sure what the release schedule looks like for NetworkConnection v2 but pull request 9 should work for now.

from datadroid.

foxykeep avatar foxykeep commented on June 14, 2024

The version 2 of datadroid now allows to disable SSL validation.

from datadroid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.