Arkadaşlar suradaki hasangul.com/pimp/
proxy.php dosyasını verebilecek olan varmi o nasıl bir header yolluyor cok mera ettim
<?php
/*header('Content-Type: video/x-flv');
header('Content-Disposition: attachment; filename="video.flv"');*/
//print_r(get_headers('http://www.hasangul.com/pimp/proxy.php?v=kzEDGvy8-6M'));
/*
Array
(
Array
(
[0] => HTTP/1.1 302 Found
[1] => Date: Thu, 28 Jan 2010 10:13:23 GMT
[2] => Server: Apache
[3] => X-Powered-By: PHP/5.2.12
[4] => Location: http://74.125.170.23/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&algorithm=throttle-factor&itag=18&ipbits=0&burst=40&sver=3&expire=1264698000&key=yt1&signature=7E743939ED8B56B811E00E742844A484944569A0.C0A44268A18BF90A40CB5D1A46241CF3322FEDD8&factor=1.25&id=9331031afcbcfba3
[5] => Content-Length: 0
[6] => Connection: close
[7] => Content-Type: text/html
[8] => HTTP/1.1 200 OK
[9] => Last-Modified: Tue, 27 Nov 2007 18:23:06 GMT
[10] => Content-Type: video/mp4
[11] => Content-Length: 3472473
[12] => Connection: close
[13] => Content-Disposition: attachment; filename="video.mp4"
[14] => Expires: Thu, 28 Jan 2010 16:55:00 GMT
[15] => Cache-Control: public,max-age=24101
[16] => Date: Thu, 28 Jan 2010 10:13:19 GMT
[17] => Server: gvs 1.0
)
)
/* Yt Headers
Array
(
[0] => HTTP/1.0 303 See Other
[1] => Date: Thu, 28 Jan 2010 10:15:41 GMT
[2] => Server: Apache
[3] => X-Content-Type-Options: nosniff
[4] => Set-Cookie: use_hitbox=72c46ff6cbcdb7c5585c36411b6b334edAEAAAAw; path=/; domain=.youtube.com
[5] => Set-Cookie: VISITOR_INFO1_LIVE=sSppeJCuCkg; path=/; domain=.youtube.com; expires=Sat, 25-Sep-2010 10:15:41 GMT
[6] => Set-Cookie: GEO=6a4ff22fe2a2b46326844025a1b380dbcwsAAAAzVFJY+atNS2FjzQ==; path=/; domain=.youtube.com
[7] => Expires: Tue, 27 Apr 1971 19:44:06 EST
[8] => Content-Length: 0
[9] => X-YouTube-MID: WkFSZzctYUFHdmdrOEM0Ymw4azJaelhUTmdIZEgtNmxVOHM2VTR0bVY0WWI4Q1Y5Um9qdlhB
[10] => Cache-Control: no-cache
[11] => Location: http://v11.lscache8.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&algorithm=throttle-factor&itag=5&ipbits=0&burst=40&sver=3&expire=1264698000&key=yt1&signature=89CC990BEDBF19ABD879B8F71AB9CC925C97CBA8.C4C9EC347D0E044E3DF34B0005F207DEA477805B&factor=1.25&id=02acf8ed3b4c4f29
[12] => Content-Type: text/html; charset=utf-8
[13] => X-XSS-Protection: 0
[14] => HTTP/1.1 200 OK
[15] => Last-Modified: Sat, 07 Nov 2009 19:28:06 GMT
[16] => Content-Type: video/x-flv
[17] => Content-Length: 11290969
[18] => Connection: close
[19] => Content-Disposition: attachment; filename="video.flv"
[20] => Expires: Thu, 28 Jan 2010 16:55:00 GMT
[21] => Cache-Control: public,max-age=23958
[22] => Date: Thu, 28 Jan 2010 10:15:42 GMT
[23] => Server: gvs 1.0
)
*/
header('Location:http://74.125.170.23/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&algorithm=throttle-factor&itag=18&ipbits=0&burst=40&sver=3&expire=1264698000&key=yt1&signature=7E743939ED8B56B811E00E742844A484944569A0.C0A44268A18BF90A40CB5D1A46241CF3322FEDD8&factor=1.25&id=9331031afcbcfba3');
header('Content-Type: video/mp4');
header('Content-Disposition: attachment; filename="video.mp4"');
header('Cache-Control: public,max-age=24101');
header('Server: gvs 1.0');
header('Content-Length: 3472473');
if(isset($_GET['w'])):
$file = file_get_contents('http://www.youtube.com/get_video_info?video_id='.$_GET['w']);
parse_str($file);
//header('Location:http://www.youtube.com/get_video?video_id='.$video_id.'&t='.$token);
print_r(get_headers('http://www.youtube.com/get_video?video_id='.$video_id.'&t='.$token));
/*
$vdo_url = explode(':',$vdo_url);
$vdo_url = trim('http:'.$vdo_url[2]);
$vdo_url = str_replace('c.youtube','googlevideo',$vdo_url);
*/
endif;
?>saatleerdir uğraşıyorum aynı header'i gönderiyorum olmuyor kendim
http://ip/videoplayback de header aliyorum uyarliyorum olmuyor.
curl ile direkt actriyorum content type belirleyip yine olmuyor.