Content-Length付き 1Mbyte Upload結果
ohtsu@unix:~/tmp/post_test$ curl -v -H "Expect:" localhost:3000 -X POST -F '[email protected] '
* Rebuilt URL to: localhost:3000/
* Adding handle: conn: 0x1729b20
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x1729b20) send_pipe: 1, recv_pipe: 0
* About to connect() to localhost port 3000 (#0)
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 3000 (#0)
> POST / HTTP/1.1
> User-Agent: curl/7.32.0
> Host: localhost:3000
> Accept: */*
> Content-Length: 1048775
> Content-Type: multipart/form-data; boundary=------------------------83e51df6e3c3160b
>
< HTTP/1.1 204 No Content
< X-Powered-By: Express
< Date: Tue, 19 Nov 2013 04:50:13 GMT
< Connection: keep-alive
<
* Connection #0 to host localhost left intact
ohtsu@unix:~/tmp/post_test$ ls -l uploaded/
total 1024
-rw-rw-r-- 1 ohtsu ohtsu 1048576 Nov 19 13:50 2285-1zhfgd.file
Content-Length付き 3Mbyte Upload結果
ohtsu@unix:~/tmp/post_test$ curl -v -H "Expect:" localhost:3000 -X POST -F '[email protected] '
* Rebuilt URL to: localhost:3000/
* Adding handle: conn: 0x2548b20
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x2548b20) send_pipe: 1, recv_pipe: 0
* About to connect() to localhost port 3000 (#0)
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 3000 (#0)
> POST / HTTP/1.1
> User-Agent: curl/7.32.0
> Host: localhost:3000
> Accept: */*
> Content-Length: 3145927
> Content-Type: multipart/form-data; boundary=------------------------63ad62f55967b697
>
< HTTP/1.1 413 Request Entity Too Large
< X-Powered-By: Express
< Content-Type: text/plain
< Content-Length: 24
< Date: Tue, 19 Nov 2013 04:50:21 GMT
< Connection: keep-alive
* HTTP error before end of send, stop sending
<
* Closing connection 0
Request Entity Too Large
Transfer-Encoding:chunked 1Mbyte Upload結果
ohtsu@unix:~/tmp/post_test$ curl -v -H "Expect:" localhost:3000 -X POST --header "Transfer-Encoding: chunked" -F '[email protected] '
* Rebuilt URL to: localhost:3000/
* Adding handle: conn: 0x105eb70
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x105eb70) send_pipe: 1, recv_pipe: 0
* About to connect() to localhost port 3000 (#0)
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 3000 (#0)
> POST / HTTP/1.1
> User-Agent: curl/7.32.0
> Host: localhost:3000
> Accept: */*
> Transfer-Encoding: chunked
> Content-Type: multipart/form-data; boundary=------------------------ec2042c3f7544c3b
>
< HTTP/1.1 204 No Content
< X-Powered-By: Express
< Date: Tue, 19 Nov 2013 04:51:08 GMT
< Connection: keep-alive
<
* Connection #0 to host localhost left intact
Transfer-Encoding:chunked 3Mbyte Upload結果
ohtsu@unix:~/tmp/post_test$ curl -v -H "Expect:" localhost:3000 -X POST --header "Transfer-Encoding: chunked" -F '[email protected] '
* Rebuilt URL to: localhost:3000/
* Adding handle: conn: 0x120cb70
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x120cb70) send_pipe: 1, recv_pipe: 0
* About to connect() to localhost port 3000 (#0)
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 3000 (#0)
> POST / HTTP/1.1
> User-Agent: curl/7.32.0
> Host: localhost:3000
> Accept: */*
> Transfer-Encoding: chunked
> Content-Type: multipart/form-data; boundary=------------------------ab0b6ffea31f16e0
>
< HTTP/1.1 413 Request Entity Too Large
< X-Powered-By: Express
< Content-Type: text/plain
< Content-Length: 24
< Date: Tue, 19 Nov 2013 04:51:15 GMT
< Connection: keep-alive
<
* Connection #0 to host localhost left intact
Request Entity Too Large