Git Product home page Git Product logo

httpclient's People

Contributors

aectann avatar alexandreroman avatar arusahni avatar avram avatar cuu508 avatar felixb avatar franklinharper avatar gabrielittner avatar gentlecat avatar hameno avatar imminent avatar jakewharton avatar mernen avatar mrenouf avatar nacitar avatar pierrre avatar scompt avatar scottkennedy avatar simonvt avatar uwetrottmann avatar veeti avatar wellsie1116 avatar wlowe avatar wuman avatar xperimental avatar yanchenko avatar zachlipton avatar zhen9ao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

httpclient's Issues

HttpClientException raised if status code is 4xx

A network request is sent: expected status codes contains 404.
When the response is read with a status code 404, the error HttpClientException is raised, followed by a FileNotFoundException. As 404 was expected, this error should not happen.

Allow setting of accepted content encodings and charset

Although the defaults make a lot of sense, sometimes a server doesn't play nice and you need to set a specific content encoding and character set to be accepted. For example, teh webserver I am talking to claims to support gzipped content, but often returns scrambled data when I ask for it.

I suggest keeping the defaults in place but allow setting of content encodings and charset on the HttpClient, so these settings are used in any successive http request.

No response object if no handler

There should be a property and a getter for response so that I can check the response without using the handler. In some cases it's more convenient NOT to use handler. e.g. AsyncTask where you want to return the response in the doInBackground() method. It's good to make things flexible.

Session cookies not parsed with lowercase set-cookies header

httpclient includes a fix for a bug in Android's HttpURLConnection before Gingerbread such that headers are converted to lowercase. However, HttpRequestBuilder's cookie parsing does not handle such cases, where the cookies header is "set-cookies" instead of "Set-Cookies". (The returned HttpResponse has them properly set as "Set-Cookies" header, but then the parsing into in-memory cookies already failed.)

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.