# Max file size which can be transferred

**URL:** <https://www.ruby-forum.com/t/max-file-size-which-can-be-transferred/245918>\
**Category:** NGINX\
**Created:** [August 1, 2013, 9:20am UTC](https://www.ruby-forum.com/t/max-file-size-which-can-be-transferred/245918 "2013-08-01T09:20:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sadaf\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Post date:** [August 1, 2013, 9:20am UTC](https://www.ruby-forum.com/t/max-file-size-which-can-be-transferred/245918/1 "2013-08-01T09:20:55Z")

</div>

Hi,

I wanted to know whats the maximum file size which i can transfer using  
a  
simple CURL PUT/GET command. I ask this because when i try to send a  
file  
which is \>64KB, i get a HTTP/1.1 100 Continue message:

File i am trying to do a PUT:

[rakshith~]$ ls -l nginx.tar  
-rw-r–r-- 1 rakshith engr 675840 Jul 29 14:38 nginx.tar

[rakshith~]$ curl -X PUT -d @nginx.tar -o /dev/null -qvk  
[http://x.x.x.x:80/Enginex.tar](http://x.x.x.x:80/Enginex.tar)

- About to connect() to x.x.x.x port 80
- Trying x.x.x.x… connected
- Connected to x.x.x.x (x.x.x.x) port 80

> PUT /Enginex.tar HTTP/1.1  
> User-Agent: curl/7.15.5 (x86\_64-redhat-linux-gnu) libcurl/7.15.5  
> OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5  
> Host: x.x.x.x  
> Accept: _/_  
> Content-Length: 64982  
> Content-Type: application/x-www-form-urlencoded  
> Expect: 100-continue

\< HTTP/1.1 100 Continue  
\< Server: nginx/1.5.3  
\< Date: Thu, 01 Aug 2013 06:05:15 GMT  
\< Content-Length: 0  
\< Location: [http://x.x.x.x/Enginex.tar](http://x.x.x.x/Enginex.tar)  
\< Connection: keep-alive  
100 64982 0 0 100 64982 0 5133k --:–:-- --:–:-- --:–:–  
9065k\* Connection #0 to host x.x.x.x left intact

Now the actual contents which made it through is of size close to 64KB  
and  
not 647KB

bash-3.2# ls -l Enginex.tar  
-rw------- 1 nobody nobody 64982 Aug 1 06:05 Enginex.tar

Any reply/help on this would be really helpful!!.

Thanks,  
Rakshith

Posted at Nginx Forum:

> **[Max file size which can be transferred](https://forum.nginx.org/read.php?2,241437,241437#msg-241437)**
>
> Hi, I wanted to know whats the maximum file size which i can transfer using a simple CURL PUT/GET command. I ask this because when i try to send a file which is \>64KB, i get a HTTP/1.1 100 Continue message: File i am trying to do a PUT:...

---

<div class="post-metadata">

**Author:** ![Rakshith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b77776/32.png) [@Rakshith](https://www.ruby-forum.com/u/Rakshith)\
**Post date:** [August 1, 2013, 11:58am UTC](https://www.ruby-forum.com/t/max-file-size-which-can-be-transferred/245918/2 "2013-08-01T11:58:06Z")

</div>

Hello!

On Thu, Aug 01, 2013 at 03:20:28AM -0400, Rakshith wrote:

> > Content-Length: 64982  
> > Please note: length of a document curl tries to PUT is just 64982.

> > Content-Type: application/x-www-form-urlencoded  
> > Expect: 100-continue
> 
> \< HTTP/1.1 100 Continue  
> \< Server: nginx/1.5.3

Just a side note: “HTTP/1.1 201 Created” line is missed here.  
It’s likely a problem of verbose output in the old version of curl  
you are using. Recent versions of curl correctly show it like this:

\< HTTP/1.1 100 Continue  
} [data not shown]  
\< HTTP/1.1 201 Created  
\< Server: nginx/1.5.4  
…

> bash-3.2# ls -l Enginex.tar  
> -rw------- 1 nobody nobody 64982 Aug 1 06:05 Enginex.tar

… and the file created is exactly as PUT by curl. That is,  
there is no problem in nginx.

Using “curl --data-binary @…” instead of “curl -d …” should  
help.

–  
Maxim D.

> **[nginx: donation](http://nginx.org/en/donation.html)**

---

<div class="post-metadata">

**Author:** ![Rakshith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b77776/32.png) [@Rakshith](https://www.ruby-forum.com/u/Rakshith)\
**Post date:** [August 1, 2013, 12:04pm UTC](https://www.ruby-forum.com/t/max-file-size-which-can-be-transferred/245918/3 "2013-08-01T12:04:32Z")

</div>

Hi,

Thanks for that reply!!.. So looks like Curl is not able to pick up the  
whole file for transfer…And Does Nginx has a limit on how big a file  
can be  
PUT/GET ??

-Rakshith

Posted at Nginx Forum:

> **[Re: Max file size which can be transferred](https://forum.nginx.org/read.php?2,241437,241454#msg-241454)**
>
> Hi, I wanted to know whats the maximum file size which i can transfer using a simple CURL PUT/GET command. I ask this because when i try to send a file which is \>64KB, i get a HTTP/1.1 100 Continue message: File i am trying to do a PUT:...

---

<div class="post-metadata">

**Author:** ![Rakshith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b77776/32.png) [@Rakshith](https://www.ruby-forum.com/u/Rakshith)\
**Post date:** [August 1, 2013, 1:53pm UTC](https://www.ruby-forum.com/t/max-file-size-which-can-be-transferred/245918/4 "2013-08-01T13:53:13Z")

</div>

Hello!

On Thu, Aug 01, 2013 at 06:11:44AM -0400, Rakshith wrote:

> I ask that question because when i tried to transfer 4GB file, i get an  
> error logged which says:
> 
> 2013/08/01 10:02:57 [error] 50935#0: \*27 client intended to send too large  
> body:  
> 4582367864 bytes, client: y.y.y.y, server: sx1, request: “PUT /core\_8GB.nz  
> HTTP/1.1”, host: “x.x.x.x”..

> **[Module ngx\_http\_core\_module](http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size)**
>
> This directive appeared in version 1.11.8.

–  
Maxim D.

> **[nginx: donation](http://nginx.org/en/donation.html)**

---

<div class="post-metadata">

**Author:** ![Rakshith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b77776/32.png) [@Rakshith](https://www.ruby-forum.com/u/Rakshith)\
**Post date:** [August 1, 2013, 12:12pm UTC](https://www.ruby-forum.com/t/max-file-size-which-can-be-transferred/245918/5 "2013-08-01T12:12:08Z")

</div>

I ask that question because when i tried to transfer 4GB file, i get an  
error logged which says:

2013/08/01 10:02:57 [error] 50935#0: \*27 client intended to send too  
large  
body:  
4582367864 bytes, client: y.y.y.y, server: sx1, request: “PUT  
/core\_8GB.nz  
HTTP/1.1”, host: “x.x.x.x”…

Posted at Nginx Forum:

> **[Re: Max file size which can be transferred](https://forum.nginx.org/read.php?2,241437,241455#msg-241455)**
>
> Hi, I wanted to know whats the maximum file size which i can transfer using a simple CURL PUT/GET command. I ask this because when i try to send a file which is \>64KB, i get a HTTP/1.1 100 Continue message: File i am trying to do a PUT:...
