d.shankar Posted September 4, 2007 Share Posted September 4, 2007 My curl script fetches all links from a html page , but it fetches the mp3,jpg,gif files. Is it possible to set "text/html" in curl_setopt ??? Link to comment https://forums.phpfreaks.com/topic/67856-restrict-curl-to-fetch-gifmp3pdf-and-etc-files/ Share on other sites More sharing options...
teng84 Posted September 4, 2007 Share Posted September 4, 2007 hmm why do you need curl???? Link to comment https://forums.phpfreaks.com/topic/67856-restrict-curl-to-fetch-gifmp3pdf-and-etc-files/#findComment-341093 Share on other sites More sharing options...
d.shankar Posted September 4, 2007 Author Share Posted September 4, 2007 I use curl to retrieve all links !! I have a bunch of URLs so i need to filter it Link to comment https://forums.phpfreaks.com/topic/67856-restrict-curl-to-fetch-gifmp3pdf-and-etc-files/#findComment-341094 Share on other sites More sharing options...
teng84 Posted September 4, 2007 Share Posted September 4, 2007 you dont need it then, i guess you need file get content or file http://www.php.net/manual/en/function.file-get-contents.php and manipulate it Link to comment https://forums.phpfreaks.com/topic/67856-restrict-curl-to-fetch-gifmp3pdf-and-etc-files/#findComment-341096 Share on other sites More sharing options...
d.shankar Posted September 4, 2007 Author Share Posted September 4, 2007 Is it possible with CURL or not ? Link to comment https://forums.phpfreaks.com/topic/67856-restrict-curl-to-fetch-gifmp3pdf-and-etc-files/#findComment-341098 Share on other sites More sharing options...
teng84 Posted September 4, 2007 Share Posted September 4, 2007 i guess its not possible curl get the whole page to load in your page so you can edit this page by your needs Link to comment https://forums.phpfreaks.com/topic/67856-restrict-curl-to-fetch-gifmp3pdf-and-etc-files/#findComment-341099 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.