Qwalyphi Korpov Posted April 27, 2015 Share Posted April 27, 2015 I am a tiny avatar. But this isn't about me.I have a script that sends http [HTTP_METHOD, "POST"] requests to an outside server. I can see in the wiki how to set the maximum body size of the response to an http request. I don't see any mention of the maximum body size that can be sent.http://wiki.secondlife.com/wiki/LlHTTPRequestI've gotten some hints there is a limit on one or both ends due to some truncation.Anyone know what the LL limit is, if any? Link to comment Share on other sites More sharing options...
Sassy Romano Posted April 27, 2015 Share Posted April 27, 2015 You mean the limits mentioned on that very page in the wiki? HTTP_BODY_MAXLENGTH 2 [integer length] [2048] Sets the maximum (UTF-8 encoded) byte length of the HTTP body. The maximum that can be set depends upon which VM is used. Mono Max: 16384 LSO Max: 4096 Link to comment Share on other sites More sharing options...
Qwalyphi Korpov Posted April 27, 2015 Author Share Posted April 27, 2015 Sassy Romano wrote: You mean the limits mentioned on that very page in the wiki? HTTP_BODY_MAXLENGTH 2 [ integer length] [ 2048] Sets the maximum (UTF-8 encoded) byte length of the HTTP body. The maximum that can be set depends upon whichVM is used. Mono Max: 16384 LSO Max: 4096 Well, I think maybe yes. Because it isn't clear that the same number applies both coming and going. I suppose I'm thrown a curve by this caveat: The response body is limited to 2048 bytes by default, see HTTP_BODY_MAXLENGTH above to increase it. If the response is longer, it will be truncated. Which makes me think... oh, that's very clear about the response body but what about the request body? Cuz if it applies to both it could have been written so much more generic. So my setting it to 16384 should be good then. I'll check with the other end. Thanks. Edit to add: Fixed my problem with a later version of Bottle. Request body arrived intact & then confused the earlier Bottle version. Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now