fixed port handling in url requests