////////////////////////////////////////////////////////////////////////////// // 1) uploading a file without unknown size and with correct arguments $ curl -XPUT -T - "http://fox/cgi-bin/ret_400.cgi?1234567890" -vvv < ret_400.c * About to connect() to fox port 80 (#0) * Trying 127.0.0.1... * Connected to fox (127.0.0.1) port 80 (#0) > PUT /cgi-bin/ret_400.cgi?1234567890 HTTP/1.1 > User-Agent: curl/7.29.0 > Host: fox > Accept: */* > Transfer-Encoding: chunked > Expect: 100-continue > < HTTP/1.1 100 Continue < HTTP/1.1 201 Created < Date: Wed, 13 Mar 2013 22:01:14 GMT < Server: Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/1.0.1e DAV/2 < Connection: Close < Content-Length: 22 < Content-Type: text/html < Created the resource * Closing connection 0 ////////////////////////////////////////////////////////////////////////////// // 2) uploading a file without unknown size and with FALSE arguments $ curl -XPUT -T - "http://fox/cgi-bin/ret_400.cgi?false_arguments" -vvv < ret_400.c * About to connect() to fox port 80 (#0) * Trying 127.0.0.1... * Connected to fox (127.0.0.1) port 80 (#0) > PUT /cgi-bin/ret_400.cgi?false_arguments HTTP/1.1 > User-Agent: curl/7.29.0 > Host: fox > Accept: */* > Transfer-Encoding: chunked > Expect: 100-continue > < HTTP/1.1 100 Continue < HTTP/1.1 400 Bad Request < Date: Wed, 13 Mar 2013 22:01:51 GMT < Server: Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/1.0.1e DAV/2 < Connection: Close < Content-Length: 40 < Content-Type: text/html < Invalid argument data: false_arguments * Closing connection 0 ////////////////////////////////////////////////////////////////////////////// // 3) uploading a file with determined size and with correct arguments $ ./curlputtest GET /home/fraxinas/corelpolyguiconf.txt HTTP/1.0 X-DESTINATION: http://fox/cgi-bin/ret_400.cgi?1234567890 curl put mode on!! source path '/home/fraxinas/corelpolyguiconf.txt' destination url 'http://fox/cgi-bin/ret_400.cgi?1234567890' HTTP/1.0 200 OK Connection: Close Content-Length: 144 Content-Type: video/mpeg PAUSED OK* About to connect() to fox port 80 (#0) * Trying 127.0.0.1... * Connected to fox (127.0.0.1) port 80 (#0) > PUT /cgi-bin/ret_400.cgi?1234567890 HTTP/1.1 Host: fox Accept: */* Content-Length: 144 Expect: 100-continue < HTTP/1.1 100 Continue curl read_callback nread=144 * We are completely uploaded and fine < HTTP/1.1 201 Created < Date: Mon, 18 Mar 2013 10:49:35 GMT < Server: Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/1.0.1e DAV/2 < Connection: Close < Transfer-Encoding: chunked < Content-Type: text/html < QOS: peer finished
Created the resource * Closing connection 0 ////////////////////////////////////////////////////////////////////////////// // 4) uploading a file with determined size and with FALSE arguments $ ./curlputtest GET /home/fraxinas/corelpolyguiconf.txt HTTP/1.0 X-DESTINATION: http://fox/cgi-bin/ret_400.cgi curl put mode on!! source path '/home/fraxinas/corelpolyguiconf.txt' destination url 'http://fox/cgi-bin/ret_400.cgi' HTTP/1.0 200 OK Connection: Close Content-Length: 144 Content-Type: video/mpeg PAUSED OK* About to connect() to fox port 80 (#0) * Trying 127.0.0.1... * Connected to fox (127.0.0.1) port 80 (#0) > PUT /cgi-bin/ret_400.cgi HTTP/1.1 Host: fox Accept: */* Content-Length: 144 Expect: 100-continue < HTTP/1.1 100 Continue curl read_callback nread=144 * We are completely uploaded and fine < HTTP/1.1 400 Bad Request < Date: Mon, 18 Mar 2013 10:49:44 GMT < Server: Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/1.0.1e DAV/2 < Connection: Close < Content-Length: 25 < Content-Type: text/html < QOS: peer error 400, Invalid argument data: * Closing connection 0 ////////////////////////////////////////////////////////////////////////////// // 5) uploading a file with determined size and with incorrect URL $ ./curlputtest GET /home/fraxinas/corelpolyguiconf.txt HTTP/1.0 X-DESTINATION: http://fox/cgi-bin/alkvjasdv curl put mode on!! source path '/home/fraxinas/corelpolyguiconf.txt' destination url 'http://fox/cgi-bin/alkvjasdv' HTTP/1.0 200 OK Connection: Close Content-Length: 144 Content-Type: video/mpeg PAUSED OK* About to connect() to fox port 80 (#0) * Trying 127.0.0.1... * Connected to fox (127.0.0.1) port 80 (#0) > PUT /cgi-bin/alkvjasdv HTTP/1.1 Host: fox Accept: */* Content-Length: 144 Expect: 100-continue < HTTP/1.1 404 Not Found < Date: Mon, 18 Mar 2013 10:49:53 GMT < Server: Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/1.0.1e DAV/2 < Vary: accept-language,accept-charset < Accept-Ranges: bytes < Connection: close < Content-Type: text/html; charset=iso-8859-1 < Content-Language: en < QOS: peer error 404,The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.