Question

I am developing an app in android. I am using web services in android. I just changed url for web services. I added underScore(_) in url.

I am getting this error "Host name may not be null while using httpClient". I found that there was a issue of underScore while using HttpClient.

From this and this, I have found that bug was filed for this. But I couldn't find a solution for this.

Note : I am using HttpClient for this. So I don't want to change implementation to something else unless I have to.

How I can use underscore in host name while calling web services using HttpClient ?

Was it helpful?

Solution

Apache doesn't support underscore. So when I changed it to dash(-), it started working.

Source : https://issues.apache.org/jira/browse/HTTPCLIENT-911

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top