<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><pre style="white-space: pre-wrap; "><font face="Helvetica">Comments interspersed.</font></pre><pre style="white-space: pre-wrap; ">> I have a very small and very stupid question about Cowboy (or, perhaps, giallo? )</pre><pre style="white-space: pre-wrap; "><font face="Helvetica">That would be giallo.</font>
> giallo:post_param(<<"param_name">>, Req) returns {error, badlength} for rather short texts (I really need to post much larger texts).
> How can I raise the limit on the body length?
</pre><div>You've hit the default MaxBodyLength of 16kb: <a href="https://github.com/extend/cowboy/blob/master/guide/req.md#request-body">https://github.com/extend/cowboy/blob/master/guide/req.md#request-body</a></div><div><br></div><div>I've just pushed a new version with a post_param/4 which lets you optionally specify your own MaxBodyLength or the atom infinity to ignore the body_length check. Remember that the body_length check was added to cowboy to mitigate a possible DoS scenario: <a href="https://gist.github.com/josevalim/eea34c1c76056d2fdf4f">https://gist.github.com/josevalim/eea34c1c76056d2fdf4f</a></div><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br>--<br>Bip Thelin<br><br></div></span></div></span></div></span></div></body></html>