downloading links page and buffering into string via open_memstream