makes url similar to server call