Jump to content

cURL & response headers.. or something like that


squiggerz

Recommended Posts

Ok, what I'm trying to do is take a page as a query string in a script (ie. http://www.mysite.com/getheaders.php?url=http://www.vid2c.com/show_video.php?video_id=0a82ec5e1e25d1c6df87439b60fe8847&rand=924708232484.5725/)

 

I'm trying to get all the actual files's urls, like on that page I am trying to get the actual urls for the js file, php, 2 swf files, the flv file etc, which I know will have to be in a loop somehow with a regular expression match to find all the links to these files in the code from the original vid2c.com/... url.

 

Is it possible to return the location of these files through the headers using curl? I use LIVE HTTP Headers extension for Firefox, so I know it is possible to get the actual urls for all the files, is it possible to do this through PHP or am I completely off base?

 

Thanks in advance for any insight.

 

SQ

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.