erlang module getting webpage and checking its status