if a port is passed in the url string for ip then we parse it and tell curl how to handle the port