Hmm, possibly it could be that chunked encoded request bodies are not
supported:
http://osdir.com/ml/modwsgi/2010-09/msg00091.html

(As for how I managed to send 35K earlier, maybe it was some kind of
packetization luck. I'm unable to reproduce it now. The Django app keeps
seeing 0 bytes for a chunked upload).

On Wed, Jul 1, 2015 at 4:17 PM, Justin Karneges <[email protected]> wrote:

> It appears that once a certain size is exceeded, the request body is not
> received at all or truncated to 0.
>
> Here's a minimal view that echos the request body:
>
> def echo(request):
>         return HttpResponse(request.body)
>
> Then I'm sending files like this:
>
> curl -v -X PUT --data-binary @file -H "Transfer-Encoding: chunked"
> http://localhost:8000/echo/
>
> The runserver output will display 0 bytes sent if I try to send a too big
> file:
>
> [01/Jul/2015 23:15:05]"PUT /echo/ HTTP/1.1" 200 0
>
> On Wed, Jul 1, 2015 at 2:10 PM, Avraham Serour <[email protected]> wrote:
>
> What do you mean by trouble, be more specific
>>
>> On Wed, Jul 1, 2015, 11:06 PM Justin Karneges <[email protected]> wrote:
>>
>>> Hi folks,
>>>
>>> I'm running into trouble doing a PUT with chunked encoded request body
>>> when the size exceeds around 35K. This is with runserver, so there's no
>>> Apache or wsgi or anything here.
>>>
>>> Are there any request body size limits in Django or specifically in
>>> runserver? Trying to isolate whether this issue is on the sender side or
>>> Django side.
>>>
>>> Thanks,
>>> Justin
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKFnGOTxERBp-Fxj%3DzVJKDyPoXDHNEXMs7hR9ef5cOEh8pxJ0A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to