|
| 1 | +```bash |
| 2 | +➜ goDistributed-Object-storage curl -v 127.0.0.1:12345/object/test |
| 3 | +* Trying 127.0.0.1:12345... |
| 4 | +* Connected to 127.0.0.1 (127.0.0.1) port 12345 (#0) |
| 5 | +> GET /object/test HTTP/1.1 |
| 6 | +> Host: 127.0.0.1:12345 |
| 7 | +> User-Agent: curl/8.0.1 |
| 8 | +> Accept: */* |
| 9 | +> |
| 10 | +< HTTP/1.1 404 Not Found |
| 11 | +< Content-Type: text/plain; charset=utf-8 |
| 12 | +< X-Content-Type-Options: nosniff |
| 13 | +< Date: Mon, 03 Jul 2023 13:23:20 GMT |
| 14 | +< Content-Length: 19 |
| 15 | +< |
| 16 | +404 page not found |
| 17 | +* Connection #0 to host 127.0.0.1 left intact |
| 18 | +``` |
| 19 | +
|
| 20 | +```bash |
| 21 | +➜ goDistributed-Object-storage curl -v 192.168.250.144:12345/objects/test -XPUT -d"this is a test object" |
| 22 | +* Trying 192.168.250.144:12345... |
| 23 | +* Connected to 192.168.250.144 (192.168.250.144) port 12345 (#0) |
| 24 | +> PUT /objects/test HTTP/1.1 |
| 25 | +> Host: 192.168.250.144:12345 |
| 26 | +> User-Agent: curl/8.0.1 |
| 27 | +> Accept: */* |
| 28 | +> Content-Length: 21 |
| 29 | +> Content-Type: application/x-www-form-urlencoded |
| 30 | +> |
| 31 | +< HTTP/1.1 200 OK |
| 32 | +< Date: Mon, 03 Jul 2023 13:27:14 GMT |
| 33 | +< Content-Length: 0 |
| 34 | +< |
| 35 | +* Connection #0 to host 192.168.250.144 left intact |
| 36 | +``` |
| 37 | +
|
| 38 | +```bash |
| 39 | +➜ goDistributed-Object-storage curl -v 127.0.0.1:12345/objects/test |
| 40 | +* Trying 127.0.0.1:12345... |
| 41 | +* Connected to 127.0.0.1 (127.0.0.1) port 12345 (#0) |
| 42 | +> GET /objects/test HTTP/1.1 |
| 43 | +> Host: 127.0.0.1:12345 |
| 44 | +> User-Agent: curl/8.0.1 |
| 45 | +> Accept: */* |
| 46 | +> |
| 47 | +< HTTP/1.1 200 OK |
| 48 | +< Date: Mon, 03 Jul 2023 13:28:21 GMT |
| 49 | +< Content-Length: 21 |
| 50 | +< Content-Type: text/plain; charset=utf-8 |
| 51 | +< |
| 52 | +* Connection #0 to host 127.0.0.1 left intact |
| 53 | +this is a test object% |
| 54 | +``` |
0 commit comments