Unusual HTTP header control
| From: | Morgan Hughes | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Unusual HTTP header control | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-124774@lists.php.net to get a copy of this message | ||
Hello list, I'm hoping someone can shed some light on a problem I'm
having with the header() function...
I'm building a script to spool MP3 files to Winamp/xmms using the HTTP
protocol. And it works fine, except I want to suppress the normal
"HTTP/1.1 200 OK" header sent by PHP/Apache and instead send "ICY 200
OK", to fool the player into thinking it's listening to a ShoutCast
server...
Does anyone know how to do this? The docs on header() don't mention it,
nor do the user notes... Any ideas? Thanks!
--
Morgan Hughes
C programmer and highly caffeinated mammal.
kyhm@kyhm.com
ICQ: 79293356