Last active
December 15, 2015 15:59
-
-
Save cvasilak/5285674 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cvasilak-MacBook-Pro:~ cvasilak$ curl --verbose -H "Accepts:application/json" "localhost:8080/aerogear-controller-demo/cars?color=black&offset=0&limit=5" | |
* About to connect() to localhost port 8080 (#0) | |
* Trying 127.0.0.1... | |
* connected | |
* Connected to localhost (127.0.0.1) port 8080 (#0) | |
> GET /aerogear-controller-demo/cars?color=black&offset=0&limit=5 HTTP/1.1 | |
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5 | |
> Host: localhost:8080 | |
> Accept: */* | |
> Accepts:application/json | |
> | |
< HTTP/1.1 200 OK | |
< Server: Apache-Coyote/1.1 | |
< Link: <http://localhost:8080/aerogear-controller-demo/cars?color=black&offset=5&limit=5>; rel="next" | |
< Content-Type: application/json;charset=UTF-8 | |
< Content-Length: 203 | |
< Date: Mon, 01 Apr 2013 15:41:11 GMT | |
< | |
* Connection #0 to host localhost left intact | |
[{"color":"black","brand":"Audi","id":1},{"color":"black","brand":"BMW","id":8},{"color":"black","brand":"Fiat","id":15},{"color":"black","brand":"Golf","id":22},{"color":"black","brand":"Lada","id":29}]* Closing connection #0 | |
cvasilak-MacBook-Pro:~ cvasilak$ curl --verbose -H "Accepts:application/json" "localhost:8080/aerogear-controller-demo/cars?color=black&offset=5&limit=5" | |
* About to connect() to localhost port 8080 (#0) | |
* Trying 127.0.0.1... | |
* connected | |
* Connected to localhost (127.0.0.1) port 8080 (#0) | |
> GET /aerogear-controller-demo/cars?color=black&offset=5&limit=5 HTTP/1.1 | |
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5 | |
> Host: localhost:8080 | |
> Accept: */* | |
> Accepts:application/json | |
> | |
< HTTP/1.1 200 OK | |
< Server: Apache-Coyote/1.1 | |
< Link: <http://localhost:8080/aerogear-controller-demo/cars?color=black&offset=0&limit=5>; rel="previous",<http://localhost:8080/aerogear-controller-demo/cars?color=black&offset=10&limit=5>; rel="next" | |
< Content-Type: application/json;charset=UTF-8 | |
< Content-Length: 210 | |
< Date: Mon, 01 Apr 2013 15:41:22 GMT | |
< | |
* Connection #0 to host localhost left intact | |
[{"color":"black","brand":"Mazda","id":36},{"color":"black","brand":"Mini","id":43},{"color":"black","brand":"Nissan","id":50},{"color":"black","brand":"Opel","id":57},{"color":"black","brand":"Scoda","id":64}]* Closing connection #0 | |
cvasilak-MacBook-Pro:~ cvasilak$ curl --verbose -H "Accepts:application/json" "localhost:8080/aerogear-controller-demo/cars?color=black&offset=10&limit=5" | |
* About to connect() to localhost port 8080 (#0) | |
* Trying 127.0.0.1... | |
* connected | |
* Connected to localhost (127.0.0.1) port 8080 (#0) | |
> GET /aerogear-controller-demo/cars?color=black&offset=10&limit=5 HTTP/1.1 | |
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5 | |
> Host: localhost:8080 | |
> Accept: */* | |
> Accepts:application/json | |
> | |
< HTTP/1.1 200 OK | |
< Server: Apache-Coyote/1.1 | |
< Link: <http://localhost:8080/aerogear-controller-demo/cars?color=black&offset=5&limit=5>; rel="previous" | |
< Content-Type: application/json;charset=UTF-8 | |
< Content-Length: 43 | |
< Date: Mon, 01 Apr 2013 15:42:44 GMT | |
< | |
* Connection #0 to host localhost left intact | |
[{"color":"black","brand":"Volvo","id":71}]* Closing connection #0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment