cyfer65 Posted August 16, 2011 Share Posted August 16, 2011 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 More sharing options...
cyfer65 Posted August 20, 2011 Author Share Posted August 20, 2011 Anybody knows..? Link to comment Share on other sites More sharing options...
justsomeguy Posted August 21, 2011 Share Posted August 21, 2011 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.