You have to communicate over the socket in exactly the way a web browser would do it. That is what my lines above do. You can put a packet sniffer on your network if you'd like.
The lines above are the HTTP Protocol that I mentioned from Webmaster In A Nutshell. There is another option. You can use the Philips HTTP Library with PEP2 and see if that will do the trick for you.