5 notes

411s, InputStreams and chunked content

tbje:

Working on our API the other day I came over an incompatibility issue with our front end server and the Dispatch http library. Some web servers does not accept chunked data input by default (nginx for instance) and will reply with a 411 error code.

If you post a file using an InputStream with Dispatch, it will send the data in chunks which is great unless an incompatible server is receiving the data.

Read More

This post was reblogged from a soft sea.

  1. delila-sanders reblogged this from asoftsea
  2. coderspiel reblogged this from asoftsea
  3. asoftsea reblogged this from tbje
  4. tbje posted this

}

blog comments powered by Disqus