resolve issue with creating NSURL in httpClient class