P3P header issue
mathcoll opened this issue · comments
Mathieu Lory commented
First, I would like to add a template for a very simple Rss reader... I'll submit it when I'll have time to commit a file on repo.. :-)
In the meantime, I've got an issue trying to grap an get google news (same for yahoo news) Rss files.
I got the P3P header answer from Google/Yahoo.
I simply added few lines (ok, ok, I can submit it as well) on the jslate/proxy.php file to fit the requirement just after the control on "isValidURL" :
$opts = array(
'http'=>array(
'method'=>"GET",
'header'=>"Accept-language: en\r\n" .
"P3P: policyref=\"http://jslate-application.domain.tld/policy.xml\"\r\n"
)
);
$context = stream_context_create($opts);
echo file_get_contents($_GET['url'], false, $context);
I think its a quick fix that can help someone else in the future.
Rasmus Berg Palm commented
I'll close this for now. If you want to submit a pull request that'd be really cool.
Cheers