Skip to content

Instantly share code, notes, and snippets.

@galderz
Created December 7, 2017 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save galderz/21997d4b673908943a11a38c51d4cc9d to your computer and use it in GitHub Desktop.
Save galderz/21997d4b673908943a11a38c51d4cc9d to your computer and use it in GitHub Desktop.
~/1/k/oc-config ❯❯❯ echo "Hello" | curl -v -u developer:developer -X PUT -d @- --header "Content-Type: text/plain" http://infinispan-http-myproject.127.0.0.1.nip.io/rest/default/a
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to infinispan-http-myproject.127.0.0.1.nip.io (127.0.0.1) port 80 (#0)
* Server auth using Basic with user 'developer'
> PUT /rest/default/a HTTP/1.1
> Host: infinispan-http-myproject.127.0.0.1.nip.io
> Authorization: Basic ZGV2ZWxvcGVyOmRldmVsb3Blcg==
> User-Agent: curl/7.54.0
> Accept: */*
> Content-Type: text/plain
> Content-Length: 5
>
* upload completely sent off: 5 out of 5 bytes
< HTTP/1.1 200 OK
< etag: text/plain1549087215
< content-type: text/plain
< content-length: 0
< Set-Cookie: 489628bede6b6256735637f909324a8b=f2c66065e4dfb2971a5e294eba82117b; path=/; HttpOnly
< Cache-control: private
<
* Connection #0 to host infinispan-http-myproject.127.0.0.1.nip.io left intact
~/1/k/oc-config ❯❯❯ curl -u developer:developer -o - http://infinispan-http-myproject.127.0.0.1.nip.io/rest/default/a master ✖ ✱ ◼
Data format not supported%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment