A
A
Artem Prokhorov2022-03-27 16:51:40
HTTP headers
Artem Prokhorov, 2022-03-27 16:51:40

How to transfer a large file?

Here is an example of accessing a resource using the PUT method:

curl -XPUT -T "D:\test.zip" --user "some:some" "https://some.resource"

If the file is small, then the transfer works without problems, but when you try to transfer something 100mb+ (I didn’t measure it exactly, I checked it for 3gb, 2gb, 100mb) it just hangs, roughly speaking. I execute the command through the console and it just waits, although everything should have loaded for a long time.
I assumed that I was missing some headers to work correctly.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question