Re: Transfer a file to httpserver via POST command from curl

2019-12-23 Thread Chris Angelico
On Tue, Dec 24, 2019 at 2:44 AM Peter J. Holzer wrote: > > On 2019-12-23 04:24:22 +1100, Chris Angelico wrote: > > On Mon, Dec 23, 2019 at 4:20 AM wrote: > > > On Wed, 18 Dec 2019 04:52:33 +1100 > > > Chris Angelico wrote: > > > > > > > On Wed, Dec 18, 2019 at 4:45 AM wrote: > > > > > BTW, the

Re: Transfer a file to httpserver via POST command from curl

2019-12-23 Thread Peter J. Holzer
On 2019-12-23 04:24:22 +1100, Chris Angelico wrote: > On Mon, Dec 23, 2019 at 4:20 AM wrote: > > On Wed, 18 Dec 2019 04:52:33 +1100 > > Chris Angelico wrote: > > > > > On Wed, Dec 18, 2019 at 4:45 AM wrote: > > > > BTW, the canonical way to upload files via http is PUT, not POST. > > > > You mig

Re: Transfer a file to httpserver via POST command from curl

2019-12-22 Thread Chris Angelico
On Mon, Dec 23, 2019 at 4:20 AM wrote: > > On Wed, 18 Dec 2019 04:52:33 +1100 > Chris Angelico wrote: > > > On Wed, Dec 18, 2019 at 4:45 AM wrote: > > > BTW, the canonical way to upload files via http is PUT, not POST. > > > You might want to look into that, but here it is off-topic. > > > > Cit

Re: Transfer a file to httpserver via POST command from curl

2019-12-22 Thread musbur
On Wed, 18 Dec 2019 04:52:33 +1100 Chris Angelico wrote: > On Wed, Dec 18, 2019 at 4:45 AM wrote: > > BTW, the canonical way to upload files via http is PUT, not POST. > > You might want to look into that, but here it is off-topic. > > Citation needed. https://tools.ietf.org/html/rfc2616#pag

Re: Transfer a file to httpserver via POST command from curl

2019-12-17 Thread Chris Angelico
On Wed, Dec 18, 2019 at 4:45 AM wrote: > > On Fri, 13 Dec 2019 03:54:53 +1100 > Chris Angelico wrote: > > > On Fri, Dec 13, 2019 at 3:44 AM Karthik Sharma > > wrote: > > > > > > Is it really possible to transfer a large binary file from my > > > machine to the above httpserver via POST command a

Re: Transfer a file to httpserver via POST command from curl

2019-12-17 Thread musbur
On Fri, 13 Dec 2019 03:54:53 +1100 Chris Angelico wrote: > On Fri, Dec 13, 2019 at 3:44 AM Karthik Sharma > wrote: > > > > Is it really possible to transfer a large binary file from my > > machine to the above httpserver via POST command and download it > > again? If yes, is the above Flask app

Re: Transfer a file to httpserver via POST command from curl

2019-12-12 Thread Chris Angelico
On Fri, Dec 13, 2019 at 3:44 AM Karthik Sharma wrote: > I am doing a POST using curl as follows. > > curl -X POST --data-binary @/home/user/testfile.txt http:// > 127.0.0.1:5000/file-upload > > Is it really possible to transfer a large binary file from my machine to > the above httpserver via POST

Transfer a file to httpserver via POST command from curl

2019-12-12 Thread Karthik Sharma
I have written a python server app (actually copied from somewhere) using Flask, that I want to act as a http server. I expect this server to recieve a POST command (of a file) from CURL and save that file on the server. And I should be able to download that file when required. My python scripts a