Jump to content

CURL + RELATIVE LINKS?


cyfer65
 Share

Recommended Posts

When you CURL a website that uses Relative Links for all its: Images,Links,Forms,JavaScript Ect..and you make your curl code to insert your curl url + the websites base domain into those relative links so they become Absolute Linkslike:

src="/js/jquery.min.js"<-becomes->src="http://mysite.com/curl.php?http://othersite.com/js/jquery.min.js"

Will those links retain or lose their functionality..?And what kinda function would I need to accomplish inserting "http://mysite.com/curl.php?http://othersite.com" into all of the Relative Links of the page I curl..?

Link to comment
Share on other sites

Your first question is pretty vague. What happens with the URLs and files depends on what your script does with them. For your second question, the only difficulty is in finding the relative links. If you can find the links then you can do whatever you want with them. You should be able to use regular expressions to find the links if you're looking in certain tags or attributes.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...