← Back to the archive
Bitcoin.onl > Archive > Bitcoin Forum > Re: Content-Length header and 500 (was Re: Authentication, JSON RPC and Python)
AuthorTopic: Re: Content-Length header and 500 (was Re: Authentication, JSON RPC and Python)
satoshiFounderSr. Member★★★★
Re: Content-Length header and 500 (was Re: Authentication, JSON RPC and Python)
« on: August 03, 2010, 09:26:26 PM UTC »

bitcoin requires the Content-Length header, but several JSON-RPC libraries do not provide it.  When the Content-Length header is absent, bitcoin returns 500 Internal Server Error.
Can you be more specific about which JSON libraries don't provide Content-Length ?  It'd be nice to document that.
I guess we should try to support the case where there's no Content-Length parameter.  I don't want to rip and replace streams though, even if it has to read one character at a time.

Edit: That is, assuming there actually are any libraries that don't support Content-Length.

Satoshi designed Bitcoin so you can hold it yourself. Start here →

KEEP THE ARCHIVE ONLINE

Tip in sats.

Bitcoin.onl is free to read. If the archive is useful to you, a tip helps keep it online. Thanks to readers who keep this online.

Lightning (preferred)faramber539@walletofsatoshi.com
On-chainbc1p7dk9n0uv9ryuv73a578zglgq6f2ml0sz9xgy9du9ms9z89evtuts7py4ak
© Bitcoin.onl · Home · Is quantum a threat? · Keep the archive online · Follow us on Bluesky and Nostr