Skip to content

Instantly share code, notes, and snippets.

@mocchira
Created July 10, 2013 01:39
Show Gist options
  • Save mocchira/5962840 to your computer and use it in GitHub Desktop.
Save mocchira/5962840 to your computer and use it in GitHub Desktop.
curl
# PUT
curl -v -X PUT intel12:8080/isnews/photos/toyokeizai/toyokeizai_20130425_13796_0.jpg -d @toyokeizai_20130425_13796_0.jpg
@yosukehara
Copy link

the results:

$ curl -v -X PUT http://leofs.test:8080/isnews/photos/toyokeizai/toyokeizai_20130425_13796_0.jpg -d @toyokeizai_20130425_13796_0.jpg
* About to connect() to leofs.test port 8080 (#0)
*   Trying 10.180.241.27...
* connected
* Connected to leofs.test (10.180.241.27) port 8080 (#0)
> PUT /isnews/photos/toyokeizai/toyokeizai_20130425_13796_0.jpg HTTP/1.1
> User-Agent: curl/7.28.0
> Host: leofs.test:8080
> Accept: */*
> Content-Length: 4086162
> Content-Type: application/x-www-form-urlencoded
> Expect: 100-continue
>
< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
< connection: keep-alive
< date: Wed, 10 Jul 2013 01:44:12 GMT
< content-length: 0
< server: LeoFS
< ETag: "2edaef8a1e8111c4e3906c7b4e314fec"
<
* Connection #0 to host leofs.test left intact
* Closing connection #0

@yosukehara
Copy link

It seems be an error, the process flow: "curl > leofs > [closed connection]".
I think leofs's problem. leofs did not continue the process.

I'll check this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment