Return to Snippet

Revision: 13759
at May 5, 2009 15:19 by rowntreerob


Initial Code
$ wget -d --spider "http://www.youtube.com/get_video?&video_id=VFGVzt7c5bY&t=vjVQa1PpcFMxWE6Xqi2iNijfCB1ILO02PYHx4FtPGz4="
Setting --spider (spider) to 1
DEBUG output created by Wget 1.11.3 on cygwin.

Spider mode enabled. Check if remote file exists.
--2009-05-05 11:48:27--  http://www.youtube.com/get_video?&video_id=VFGVzt7c5bY&t=vjVQa1PpcFMxWE6Xqi2iNijfCB1ILO02PYHx4FtPGz4=
Resolving www.youtube.com... 208.65.153.253
Caching www.youtube.com => 208.65.153.253
Connecting to www.youtube.com|208.65.153.253|:80... connected.
Created socket 3.
Releasing 0x00f51068 (new refcount 1).

---request begin---
HEAD /get_video?&video_id=VFGVzt7c5bY&t=vjVQa1PpcFMxWE6Xqi2iNijfCB1ILO02PYHx4FtPGz4= HTTP/1.0
User-Agent: Wget/1.11.3
Accept: */*
Host: www.youtube.com
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 303 See Other
Date: Tue, 05 May 2009 18:48:23 GMT
Server: Apache
X-Content-Type-Options: nosniff
Set-Cookie: use_hitbox=72c46ff6cbcdb7c5585c36411b6b334edAEAAAAw; path=/; domain=.youtube.com
Set-Cookie: VISITOR_INFO1_LIVE=PmSEuruntn8; path=/; domain=.youtube.com; expires=Thu, 31-Dec-2009 18:48:23 GMT
Set-Cookie: GEO=65204316c00d1402d44691102a22567bcwwAAAAyVVMYBcOnAPeJAEo=; path=/; domain=.youtube.com
Expires: Tue, 27 Apr 1971 19:44:06 EST
X-YouTube-MID: WkFSZzctYUFHdmkyLVFfemJtWlczelpscFVRYkxEWGNPbTBweHdpRmZpVWY5RWJrOVNLd3dR
Cache-Control: no-cache
Location: http://v3.lscache3.googlevideo.com/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag&itag=5&ip=24.5.195.167&signature=5C6FF28648A7D2E8A953E9E5185
FC88B7238456E.1240710527F1F828891196B5A04027F453F7A278&sver=3&expire=1241570903&key=yt1&ipbits=0&id=545195cededce5b6
Keep-Alive: timeout=300
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8

---response end---
303 See Other
cdm: 1 2 3 4 5 6 7 8
Stored cookie youtube.com -1 (ANY) / <session> <insecure> [expiry none] use_hitbox 72c46ff6cbcdb7c5585c36411b6b334edAEAAAAw
cdm: 1 2 3 4 5 6 7 8
Stored cookie youtube.com -1 (ANY) / <permanent> <insecure> [expiry 2009-12-31 10:48:23] VISITOR_INFO1_LIVE PmSEuruntn8
cdm: 1 2 3 4 5 6 7 8
Stored cookie youtube.com -1 (ANY) / <session> <insecure> [expiry none] GEO 65204316c00d1402d44691102a22567bcwwAAAAyVVMYBcOnAPeJAEo=
Location: http://v3.lscache3.googlevideo.com/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag&itag=5&ip=24.5.195.167&signature=5C6FF28648A7D2E8A953E9E5185
FC88B7238456E.1240710527F1F828891196B5A04027F453F7A278&sver=3&expire=1241570903&key=yt1&ipbits=0&id=545195cededce5b6 [following]
Closed fd 3
Spider mode enabled. Check if remote file exists.
--2009-05-05 11:48:27--  http://v3.lscache3.googlevideo.com/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag&itag=5&ip=24.5.195.167&signature=5C6FF28648A7
D2E8A953E9E5185FC88B7238456E.1240710527F1F828891196B5A04027F453F7A278&sver=3&expire=1241570903&key=yt1&ipbits=0&id=545195cededce5b6
Resolving v3.lscache3.googlevideo.com... 74.125.15.22
Caching v3.lscache3.googlevideo.com => 74.125.15.22
Connecting to v3.lscache3.googlevideo.com|74.125.15.22|:80... connected.
Created socket 3.
Releasing 0x00f51e28 (new refcount 1).

---request begin---
HEAD /videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag&itag=5&ip=24.5.195.167&signature=5C6FF28648A7D2E8A953E9E5185FC88B7238456E.1240710527F1F828891196B5A
04027F453F7A278&sver=3&expire=1241570903&key=yt1&ipbits=0&id=545195cededce5b6 HTTP/1.0
User-Agent: Wget/1.11.3
Accept: */*
Host: v3.lscache3.googlevideo.com
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 200 OK
Content-Disposition: attachment; filename="video.flv"
Last-Modified: Sat, 17 May 2008 01:28:32 GMT
Content-Type: video/x-flv
Content-Length: 4005432
Expires: Tue, 05 May 2009 19:48:23 GMT
Cache-Control: public,max-age=3600
Connection: close
Date: Tue, 05 May 2009 18:48:23 GMT
Server: gvs 1.0

---response end---
200 OK
Length: 4005432 (3.8M) [video/x-flv]
Closed fd 3
Remote file exists.

Initial URL

                                

Initial Description
java httpurlconnection or apache.commons..GetMethod will have to simulate a 'spider' where you process the GET but NO DOWNLOAD of media happens

Initial Title
youtube call 4 - spider version of call 2. get Location without a download of media

Initial Tags

                                

Initial Language
Bash