relying on ``allow_url_fopen`` is a bad idea, as it can often be turned off.

You should rely on the SocketHandler logic instead, as done for the HipChatHandler for instance