Controlling iTunes with Perl
Subject:   it almost works...
Date:   2003-07-13 19:47:37
From:   anonymous2
Did a version change in itunes mangle the perl module?
Any help in getting this going again would be much appreciated.

I get this in the apache logs:
[Sun Jul 13 19:33:04 2003] [error] [client] Premature end of script headers: itunes.cgi
[Sun Jul 13 19:33:04 2003] [error] [client] -1753 at /usr/local/apache2.0.47/cgi-bin/itunes.cgi line 59

and an Error 500 on the web page.

I'm running these versions:
Apache 2.0.47
iTunes 4.0.1 (117)

If I run on the command line I get this:
[goomba:/usr/local/apache2.0.47] danya% cgi-bin/iTunes.cgi
-1753 at cgi-bin/iTunes.cgi line 59
Content-Type: text/html; charset=ISO-8859-1

<head><title>iTunes Web Interface</title></head>


<h1>iTunes Web Interface</h1>

player state is stopped.

current track is p$+.

current playlist is Library.

Play ||
Stop ||
Pause ||
Restart ||

<td bgcolor="#FFFF00">Playlists</td>
<td bgcolor="#FFFF00">Tracks</td>

<tr><td valign="top">
<tr><td bgcolor="#00ccff">Library</td></tr>
<tr><td>Natasha's Songs</td></tr>
<tr><td>Recently Played</td></tr>
<tr><td>Top 25 Most Played</td></tr>
<tr><td>Top N Least Played</td></tr>
<tr><td>Olde Lady Songs</td></tr>

<td valign="top">



[goomba:/usr/local/apache2.0.47] danya%