advertisement

Article:
  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.
Thanks,
Keith


I get this in the apache logs:
[Sun Jul 13 19:33:04 2003] [error] [client 127.0.0.1] Premature end of script headers: itunes.cgi
[Sun Jul 13 19:33:04 2003] [error] [client 127.0.0.1] -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


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


<body>


<h1>iTunes Web Interface</h1>


player state is stopped.

current track is p$+.

current playlist is Library.


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


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


</tr>
<tr><td valign="top">
<table>
<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>Funkytown</td></tr>
<tr><td>Olde Lady Songs</td></tr>


</table>
</td>
<td valign="top">
<table>


</table>
</td></tr>
</table>


</body>
</html>


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