send requests to server; print response