Skip to content

Instantly share code, notes, and snippets.

@ericksprengel
Created October 8, 2016 05:21
Show Gist options
  • Save ericksprengel/70d6d2a25134b665fffe49364689a0f5 to your computer and use it in GitHub Desktop.
Save ericksprengel/70d6d2a25134b665fffe49364689a0f5 to your computer and use it in GitHub Desktop.
AndroidA03T03 - HTTP Request/Response
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 192.30.253.116...
* Connected to api.github.com (192.30.253.116) port 443 (#0)
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate: *.github.com
* Server certificate: DigiCert SHA2 High Assurance Server CA
* Server certificate: DigiCert High Assurance EV Root CA
> GET /gists/a506ab89229e2f494cf9ebdef6582720 HTTP/1.1
> Host: api.github.com
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: GitHub.com
< Date: Sat, 08 Oct 2016 05:17:57 GMT
< Content-Type: application/json; charset=utf-8
< Content-Length: 5030
< Status: 200 OK
< X-RateLimit-Limit: 60
< X-RateLimit-Remaining: 52
< X-RateLimit-Reset: 1475904660
< Cache-Control: public, max-age=60, s-maxage=60
< Vary: Accept
< ETag: "9f79138e9fec5890f33d79ed84d53156"
< Last-Modified: Sat, 08 Oct 2016 02:44:34 GMT
< X-GitHub-Media-Type: github.v3
< Access-Control-Expose-Headers: ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
< Access-Control-Allow-Origin: *
< Content-Security-Policy: default-src 'none'
< Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
< X-Content-Type-Options: nosniff
< X-Frame-Options: deny
< X-XSS-Protection: 1; mode=block
< Vary: Accept-Encoding
< X-Served-By: 3e3b9690823fb031da84658eb58aa83b
< X-GitHub-Request-Id: BB79015D:1596:2A242F0:57F88185
<
{ [408 bytes data]
{
"url": "https://api.github.com/gists/a506ab89229e2f494cf9ebdef6582720",
"forks_url": "https://api.github.com/gists/a506ab89229e2f494cf9ebdef6582720/forks",
"commits_url": "https://api.github.com/gists/a506ab89229e2f494cf9ebdef6582720/commits",
"id": "a506ab89229e2f494cf9ebdef6582720",
"git_pull_url": "https://gist.github.com/a506ab89229e2f494cf9ebdef6582720.git",
"git_push_url": "https://gist.github.com/a506ab89229e2f494cf9ebdef6582720.git",
"html_url": "https://gist.github.com/a506ab89229e2f494cf9ebdef6582720",
"files": {
"layout_padding_vs_margin.xml": {
"filename": "layout_padding_vs_margin.xml",
"type": "application/xml",
"language": "XML",
"raw_url": "https://gist.githubusercontent.com/ericksprengel/a506ab89229e2f494cf9ebdef6582720/raw/cb7e34a5cc2413883179b9c3a36278959eae59f9/layout_padding_vs_margin.xml",
"size": 1142,
"truncated": false,
"content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:id=\"@+id/activity_main\"\n android:orientation=\"vertical\"\n android:background=\"#fcc\"\n android:layout_width=\"match_parent\"\n android:layout_height=\"match_parent\">\n\n <ImageView\n android:id=\"@+id/imageView\"\n android:background=\"#ccf\"\n android:src=\"@drawable/sample\"\n android:padding=\"20dp\"\n android:layout_margin=\"30dp\"\n android:layout_width=\"500px\"\n android:layout_height=\"500px\" />\n\n <TextView\n android:background=\"#cfc\"\n android:text=\"Estou embaixo de vc.\"\n android:layout_width=\"match_parent\"\n android:layout_height=\"match_parent\"\n android:layout_below=\"@id/imageView\"\n android:layout_alignParentEnd=\"true\"\n android:layout_marginEnd=\"36dp\" />\n\n <TextView\n android:background=\"#cfc\"\n android:text=\"Estou ao seu lado esquerdo\"\n android:layout_width=\"match_parent\"\n android:layout_height=\"match_parent\"\n android:layout_toRightOf=\"@id/imageView\" />\n\n\n</RelativeLayout>"
}
},
"public": true,
"created_at": "2016-09-30T18:47:49Z",
"updated_at": "2016-10-08T02:44:34Z",
"description": "AndroidA02ApB - Padding vs Margin",
"comments": 0,
"user": null,
"comments_url": "https://api.github.com/gists/a506ab89229e2f494cf9ebdef6582720/comments",
"owner": {
"login": "ericksprengel",
"id": 1028164,
"avatar_url": "https://avatars.githubusercontent.com/u/1028164?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/ericksprengel",
"html_url": "https://github.com/ericksprengel",
"followers_url": "https://api.github.com/users/ericksprengel/followers",
"following_url": "https://api.github.com/users/ericksprengel/following{/other_user}",
"gists_url": "https://api.github.com/users/ericksprengel/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ericksprengel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ericksprengel/subscriptions",
"organizations_url": "https://api.github.com/users/ericksprengel/orgs",
"repos_url": "https://api.github.com/users/ericksprengel/repos",
"events_url": "https://api.github.com/users/ericksprengel/events{/privacy}",
"received_events_url": "https://api.github.com/users/ericksprengel/received_events",
"type": "User",
"site_admin": false
},
"forks": [
],
"history": [
{
"user": {
"login": "ericksprengel",
"id": 1028164,
"avatar_url": "https://avatars.githubusercontent.com/u/1028164?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/ericksprengel",
"html_url": "https://github.com/ericksprengel",
"followers_url": "https://api.github.com/users/ericksprengel/followers",
"following_url": "https://api.github.com/users/ericksprengel/following{/other_user}",
"gists_url": "https://api.github.com/users/ericksprengel/gists{/gist_id}",
100 5030 100 5030 0 0 5585 0 --:--:-- --:--:-- --:--:-- 5582
* Connection #0 to host api.github.com left intact
"starred_url": "https://api.github.com/users/ericksprengel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ericksprengel/subscriptions",
"organizations_url": "https://api.github.com/users/ericksprengel/orgs",
"repos_url": "https://api.github.com/users/ericksprengel/repos",
"events_url": "https://api.github.com/users/ericksprengel/events{/privacy}",
"received_events_url": "https://api.github.com/users/ericksprengel/received_events",
"type": "User",
"site_admin": false
},
"version": "684277e6744c9dc97c8bb5ac80722b69451d8b11",
"committed_at": "2016-09-30T18:47:49Z",
"change_status": {
"total": 35,
"additions": 35,
"deletions": 0
},
"url": "https://api.github.com/gists/a506ab89229e2f494cf9ebdef6582720/684277e6744c9dc97c8bb5ac80722b69451d8b11"
}
],
"truncated": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment