Skip to content

Instantly share code, notes, and snippets.

@rajiv
Created March 25, 2014 20:59
Show Gist options
  • Save rajiv/9771197 to your computer and use it in GitHub Desktop.
Save rajiv/9771197 to your computer and use it in GitHub Desktop.
$ curl -v 'https://graph.facebook.com/669029534/picture' -H 'dnt: 1' -H 'accept-encoding: gzip,deflate,sdch' -H 'accept-language: en-US,en;q=0.8' -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.76 Safari/537.36' -H 'accept: image/webp,*/*;q=0.8' --compressed
* Adding handle: conn: 0x7f8d00803a00
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7f8d00803a00) send_pipe: 1, recv_pipe: 0
* About to connect() to graph.facebook.com port 443 (#0)
* Trying 31.13.74.128...
* Connected to graph.facebook.com (31.13.74.128) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
* Server certificate: *.facebook.com
* Server certificate: VeriSign Class 3 Secure Server CA - G3
* Server certificate: VeriSign Class 3 Public Primary Certification Authority - G5
* Server certificate: Class 3 Public Primary Certification Authority
> GET /669029534/picture HTTP/1.1
> Host: graph.facebook.com
> dnt: 1
> accept-encoding: gzip,deflate,sdch
> accept-language: en-US,en;q=0.8
> user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.76 Safari/537.36
> accept: image/webp,*/*;q=0.8
>
< HTTP/1.1 302
< x-fb-rev: 1175958
< Access-Control-Allow-Origin: *
< Cache-Control: private, no-cache, no-store, must-revalidate
< Content-Type: image/jpeg
< Date: Tue, 25 Mar 2014 20:18:34 GMT
< Expires: Sat, 01 Jan 2000 00:00:00 GMT
< Location: http://profile.ak.fbcdn.net/hprofile-ak-prn1/t5.0-1/49059_669029534_3370_q.jpg
< Pragma: no-cache
< X-FB-Debug: JqpKS/uPWA+eYQXKwexwy7NU4x1zGtyWCfgKuLkM9nA=
< Connection: keep-alive
< Content-Length: 0
<
* Connection #0 to host graph.facebook.com left intact
@andrewsf
Copy link

<AndrewF> add ?return_ssl_ressources=1
<AndrewF> http://graph.facebook.com/4/picture      vs.     http://graph.facebook.com/4/picture?return_ssl_resources=1
<AndrewF> https://graph.facebook.com/4/picture      vs.     https://graph.facebook.com/4/picture?return_ssl_resources=1

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