Re: [python-uk] File upload with 'requests' package

2016-12-02 Thread Cory Benfield (Lukasa)
I don’t think 100-Continue will be the issue here: Requests just ignores it. What’s likely happening here is that the remote server is sending a 400 Client Error, but Requests doesn’t see it because it’s busy uploading the data and eventually the server gets mad and kills the connection to stop

Re: [python-uk] File upload with 'requests' package

2016-12-02 Thread Peter Flood
Are you uploading to S3? 100 Continue is pretty obscure, it's sent by the server _before_ the client has sent the body, lots of clients don't expect that and handle it badly. See https://github.com/boto/boto/issues/2207 On 02/12/2016 16:10, Florian BERBAR wrote: Good evening everyone, I try

Re: [python-uk] File upload with 'requests' package

2016-12-02 Thread Alistair Broomhead
Not sure that really explain why curl could do it On Fri, 2 Dec 2016 at 17:19 Edward Hartley wrote: > Prolly a server side limit. > > On 2 Dec 2016, at 16:15, Alistair Broomhead > wrote: > > Hi Florian, > > This is probably not the best forum for Q&A, but I think you might need to > look at > h

Re: [python-uk] File upload with 'requests' package

2016-12-02 Thread Edward Hartley
Prolly a server side limit. > On 2 Dec 2016, at 16:15, Alistair Broomhead > wrote: > > Hi Florian, > > This is probably not the best forum for Q&A, but I think you might need to > look at > http://docs.python-requests.org/en/master/user/advanced/#chunk-encoded-requests > > Al > >> On Fri,

Re: [python-uk] File upload with 'requests' package

2016-12-02 Thread Alistair Broomhead
Hi Florian, This is probably not the best forum for Q&A, but I think you might need to look at http://docs.python-requests.org/en/master/user/advanced/#chunk-encoded-requests Al On Fri, 2 Dec 2016 at 16:11 Florian BERBAR wrote: > Good evening everyone, > > I try to post a file (100MB) on a Web

[python-uk] File upload with 'requests' package

2016-12-02 Thread Florian BERBAR
Good evening everyone, I try to post a file (100MB) on a Web form with python3 and the 'requests' package. This is my implementation : --BOF- #!/usr/local/bin/python3 -u import requests email="u...@srv.fr