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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.