Skip to content

Instantly share code, notes, and snippets.

@vitorenesduarte
Created April 6, 2015 17:00
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 vitorenesduarte/c59e404c148666fcd0e7 to your computer and use it in GitHub Desktop.
Save vitorenesduarte/c59e404c148666fcd0e7 to your computer and use it in GitHub Desktop.
curl_output2
mymachine:~$ curl -u admin:admin "http://localhost:2480/query/MYDB/sql/select from Tag where isFeatured = true limit -1"
from 200 OK
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Date: Mon Apr 06 16:56:20 UTC 2015
Content-Type: application/json; charset=utf-8
Server: OrientDB Server v.2.0.6 (build UNKNOWN@r; 2015-03-31 18:22:35+0000)
Connection: Keep-Alive
Set-Cookie: OSESSIONID=OS1428339380484574290176262369185; Path=/; HttpOnly
Content-Length: 54
{"result":[{"@type":"d","@rid":"#-2:0","@version":0}]
mymachine:~$ curl -u admin:admin "http://localhost:2480/query/MYDB/sql/select from Tag where isFeatured = true/-1"
from 200 OK
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Date: Mon Apr 06 16:57:06 UTC 2015
Content-Type: application/json; charset=utf-8
Server: OrientDB Server v.2.0.6 (build UNKNOWN@r; 2015-03-31 18:22:35+0000)
Connection: Keep-Alive
Set-Cookie: OSESSIONID=OS1428339426396-8165987415151563642; Path=/; HttpOnly
Content-Length: 54
{"result":[{"@type":"d","@rid":"#-2:0","@version":0}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment