To mimic the HTTP communication