BuildUrl Fix

I found an bug when trying to make a get request sending an url using a port, eg. localhost:8080, getting as result an 404 message error.