Skip to content

Instantly share code, notes, and snippets.

@saschagehlich
Created June 9, 2012 23:02
Show Gist options
  • Save saschagehlich/2902946 to your computer and use it in GitHub Desktop.
Save saschagehlich/2902946 to your computer and use it in GitHub Desktop.
$ curl -I "http://www.dailymotion.com/cdn/H264-848x480/video/xkqom7.mp4?auth=1339455426-72402614d667d2124f5234b17db6055a" -v -H "User-Agent:" -H "Accept:"
* About to connect() to www.dailymotion.com port 80 (#0)
* Trying 195.8.215.138... connected
* Connected to www.dailymotion.com (195.8.215.138) port 80 (#0)
> HEAD /cdn/H264-848x480/video/xkqom7.mp4?auth=1339455426-72402614d667d2124f5234b17db6055a HTTP/1.1
> Host: www.dailymotion.com
>
< HTTP/1.1 302 Found
HTTP/1.1 302 Found
< Server: DMS/1.0.42
Server: DMS/1.0.42
< X-DM-BackNode: sc-198.srv.dailymotion.com:80
X-DM-BackNode: sc-198.srv.dailymotion.com:80
< Vary: Accept-Encoding
Vary: Accept-Encoding
< Cache-Control: private, no-cache
Cache-Control: private, no-cache
< Content-Type: text/html; charset=utf-8
Content-Type: text/html; charset=utf-8
< P3p: policyref="http://www.dailymotion.com/w3c/p3p.xml", CP="IDC DSP CURa ADMa DEVa TAIa OUR BUS IND UNI COM NAV INT"
P3p: policyref="http://www.dailymotion.com/w3c/p3p.xml", CP="IDC DSP CURa ADMa DEVa TAIa OUR BUS IND UNI COM NAV INT"
< Date: Sat, 09 Jun 2012 23:00:26 GMT
Date: Sat, 09 Jun 2012 23:00:26 GMT
< Location: http://proxy-06.dailymotion.com/video/972/738/34837279_mp4_h264_aac_hq.mp4?auth=1339290026-4098-hwqgm2tg-3de13c4e33771f58d4488918c47a9f1f
Location: http://proxy-06.dailymotion.com/video/972/738/34837279_mp4_h264_aac_hq.mp4?auth=1339290026-4098-hwqgm2tg-3de13c4e33771f58d4488918c47a9f1f
< Expires: Fri, 08 Jun 2012 23:00:26 +0000
Expires: Fri, 08 Jun 2012 23:00:26 +0000
< X-DM-Cache: DONT
X-DM-Cache: DONT
< Transfer-Encoding: chunked
Transfer-Encoding: chunked
< X-Dm-Cell: core, rule=65, vars=remote.as,remote.continent
X-Dm-Cell: core, rule=65, vars=remote.as,remote.continent
< Connection: Keep-Alive
Connection: Keep-Alive
< Set-Cookie: tg=805235; expires=Thu, 09-Jun-2022 23:00:26 GMT; path=/
Set-Cookie: tg=805235; expires=Thu, 09-Jun-2022 23:00:26 GMT; path=/
< Set-Cookie: dmvk=4fd3d58a4764d; path=/; domain=.dailymotion.com
Set-Cookie: dmvk=4fd3d58a4764d; path=/; domain=.dailymotion.com
< X-Dm-Page: de.html.cdn_director
X-Dm-Page: de.html.cdn_director
< X-Dm-Error: DM_RequestCompat__Stop_Exception :
X-Dm-Error: DM_RequestCompat__Stop_Exception :
<
* Connection #0 to host www.dailymotion.com left intact
* Closing connection #0
request = require('request')
request.head 'http://www.dailymotion.com/cdn/H264-848x480/video/xkqom7.mp4?auth=1339455426-72402614d667d2124f5234b17db6055a', (e, r, body) ->
console.log r.statusCode
# Output: 403
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment