Removing port number from url for default ports

A 404 response was being returned from the api when port numbers
were specified.
Changing 'query' to 'send'