testing ways to send request to remote server successfully