I believe the problem I'm having is with the HTTP server I am using. I'm using pico server (pserv.sourceforge.net). I just tried running similar code on a Linux machine I have Apache running on and it's not a problem there. I was using pico server to just have a lightweight server for serving one page internally on our network.