Posted by Sam308 on January 17, 2007 at 12:15am
What is xmlrpc.php file used for?
I have searched both Drupal.org and Google to find out what the xmlrpc.php file used for? The only thing I can find is the following statement:
- "PHP page for handling incoming XML-RPC requests from clients."
I have removed the xmlrpc.php from my site but I have numerous RSS feeds coming into my site. Is the xmlrpc.php file used for RSS feeds? Should I put the file back?
I heard in the past about security issues regarding this file. Should this file be moved out of the root directory to a subdirectory to avoid misuse from hackers?
Does anyone have a "non-technical" description of what the xmlrpc.php file is used for?
Thanks,
Sam308
Comments
I am unaware of any security
I am unaware of any security related issues with this file. removing is or storing it above the public root would seem to be to be unnecessary.
the above is an excerpt from http://davenet.scripting.com/1998/07/14/xmlRpcForNewbies
Interesting reading
But I don't think you answered his question. What is that module for?
NancyDru
its not a module. its a file
its not a module. its a file in the core drupal download.
answered above: but will place here for convience.
You have long memory
xmlrpc.php and everything else around it is safe since 2005 summer (4.6.3, 4.5.5) -- at this point I changed the ancient XML-RPC library to a much more modern and lot safer one. Since then we have not seen any XML-RPC secholes.
If you have a blogging client then that can issue XML-RPC requests so that you can create blog posts with that app. There are other, similar uses: when a program on another server wants to 'talk' to you, XML-RPC is one of the methods to do it.
--
The news is Now Public | Drupal development: making the world better, one patch at a time. | A bedroom without a teddy is like a face without a smile.
--
Drupal development: making the world better, one patch at a time. | A bedroom without a teddy is like a face without a smile.
Blogger api
If you wanted to post to your site remotely (using a desktop client, or from digg.com...) you'd need this. There are dozens of other uses... for example letting a Flash client do things with Drupal. Most likely, you're not using it.
- Robert Douglass
-----
Lullabot | My Drupal book | My Digg RSS feed
my Drupal book | Twitter | Senior Drupal Advisor, Acquia | Advisor ICanLocalize
Thanks for the discussion, but I need an answer
Thanks for spending the time to define XML-RPC. It was interesting reading.
Maybe now there are no security issues associated with the xmlrpc.php file, but I just need an answer to the following two questions.
In my original posting I asked:
(1) I have removed the xmlrpc.php from my site but I have numerous RSS feeds coming into my site. Is the xmlrpc.php file used for RSS feeds? Should I put the file back?
(2) I heard in the past about security issues regarding this file. Should this file be moved out of the root directory to a subdirectory to avoid misuse from hackers?
Thanks,
Sam308
Sam Raheb (Sam308)
Sigh
It has nothing to do with RSS. It is safe, no need to do anything.
--
The news is Now Public | Drupal development: making the world better, one patch at a time. | A bedroom without a teddy is like a face without a smile.
--
Drupal development: making the world better, one patch at a time. | A bedroom without a teddy is like a face without a smile.
So how do I use it?
I want to retrieve stuff from my Drupal site using XML-RPC, but I'm not sure how to go about it..
Is there a way to bring up a listing of all possible things I can query via XMLRPC, so I can use PHP to retrieve information...
Thanks..
Ben
Use cases
http://drupal.org/search/node?keys=xmlrpc+type:project_project
Daniel F. Kudwien
unleashed mind
Daniel F. Kudwien
unleashed mind
Wordpress and xmlrpc
I have a wordpress website which came with an xmlrpc.php file. I'm writing some cache-controls for different files. My understanding is that with wordpress the files of the txt of different pages withing a wordpress website are .php files. Obviouslu xmplrpc.php is also a .php file. If I set cache control for .php files (to keep the expiration for text short) won't the cache controlling advrsely affect the xmlrpc.php file? In other words in
<IfModule mod_headers.c><FilesMatch "\.(ico|jpg|jpeg|gif)$">
Header set Cache-Control "max-age=37440000"
</FilesMatch>
<FilesMatch "\.(css)$">
Header set Cache-Control "max-age=87000"
</FilesMatch>
<FilesMatch "\.(html|htm)$">
Header set Cache-Control "max-age=300"
</FilesMatch>
</IfModule>
If I add
<FilesMatch "\.(php)$">Header set Cache-Control "max-age=300"
</FilesMatch>
It should keep the expiration of the text of a wordpress site to 300 seconds, but will this cache control code adversely affect how xmlrpc.php functions? What sort of effect will caching xmlrpc.php have?
Thanks,
Rex
Roscoe