Active
Project:
Create from Web
Version:
6.x-1.3
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2011 at 01:59 UTC
Updated:
22 Mar 2011 at 09:48 UTC
Warning: file_get_contents(http://en.wikipedia.org/w/index.php?title=Alexandre_Dumas&action=raw&section=0) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in createfromweb_operator_wikipedia_execute() (line 72 of /var/aegir/platforms/pressflow-6/sites/all/modules/createfromweb/operator_wikipedia.inc).
If you get something similar, check out that the url in question can be accessed from your browser.
In my case I got an error message from wikipedia saying.
Our servers are currently experiencing a technical problem. This is probably temporary and should be fixed soon. Please try again in a few minutes.
Just noting it here in case someone searches for this. I'm marking this as works as designed.
Comments
Comment #1
brevity commentedThanks for noting!
Could also be though that the servers don't like a PHP 'bot' to GET their content and a more sophisticated http client would be needed (maybe simply setting a fake browser id ;) -- or using the wikipedia api instead ...
Comment #2
pkej commentedI've been thinking the same, since it doesn't work again yet.
The thing is that when I go to the same URL with my browser I get the same access denied:
which is what the Web developer plugin for Firefox says are the headers from http://en.wikipedia.org/w/index.php?title=Albert_Einstein&action=raw&sec...
You'll notice that I have cache on my router, so the question is: have anyone else noticed the same problem?
If so, perhaps Wikipedia API would be the way to go, but I haven't got the foggiest about it. I'm going to give http://drupal.org/project/linked_data a try, see if it might help me out.