Page 1 of 1

opml file and curl?

Posted: Wed Nov 30, 2011 10:23 pm
by kc11
Hi everyone,

I am trying to parse an opml file automatically. I generate this file by entering a string like the following into a browser: "http://www.searchtempest.com/makeopml.p ... sfeedname="


This makes the opml file and on my screen , I get a dialog box asking me to open or save a .opml file. Manually, I can save this, but how can I bypass this dialog box using curl, or alternatively, is there another way to receive and parse this file.

Thank you,

kc

Re: opml file and curl?

Posted: Thu Dec 01, 2011 11:52 am
by kc11
Actually, a basic CURL procedure worked.

Code: Select all


$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 $data = curl_exec($ch);
 curl_close($ch);

for some reason file_get_contents did not.

Thanks,

KC