QUOTE(firewire_666 @ Jan 29 2004, 11:04 AM)
I was following the thread concerning remote foobar control (
foo_write_http) as I am looking for a decent remote admin/control plug-in, because I want to build a dedicated music-server

All Linux jukeboxes lack the abilities of foobar regarding file formats and handling, so it would be great to have a plug-in that turns any windows machine (with web server) to a music-jukebox, which is controllable by any system/device that is able to read html-pages
I wrote something like this as a Winamp 2.x plugin, and later sort of ported it to Foobar 0.6. I never bothered to upgrade it to 0.7, though.
The quick overview is that it is a complete web server in a plugin, which provides an HTTP interface to the player controls (play, stop, volume, etc.), display of the currently playing song info and player status, and playlist display/search/add/remove/switch functions. It can also browse files, HTTP stream and transfer songs, and act as an Icecast server. In addition, there is an XML-RPC/SOAP interface, so it can be controlled from application.
Like I said, I never upgraded it to the latest Foobar SDK, since I still use 0.6 on my server machine. I do have some ideas for an improved version, such as outputtting only XML data, and using XSLT to transform the data into HTML/XML-RPC/text, as needed. I haven't really worked on it for 1/2 a year, so getting started again has been very difficult!
If someone else were to tackle a project like this, I would recommend starting off with good mini-HTTP server code (there was a discussion on Slashdot about this, a few days ago), and consider implementing either the XML interface, or provide some way to customize the HTML from an external file (maybe script it?). Also consider providing the XML-RPC interface, since that turned out to be one of the best features of my component when used with remote access programs. There were also a couple of other Winamp 2.x web server plugins, so you might look to those for inspiration, as well.