我正在尝试获取我在android中的当前位置并将其发送到服务器。一切顺利,但在将其发送到服务器时,我在HTTPResponse中收到错误。
以下是日志错误文件
02-18 20:56:54.424: W/System.err(16477): org.apache.http.conn.HttpHostConnectException: Connection to 19x.xx.xx.x:xxxx refused
02-18 20:56:54.429: W/System.err(16477): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:183)
02-18 20:56:54.429: W/System.err(16477): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
02-18 20:56:54.429: W/System.err(16477): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
02-18 20:56:54.429: W/System.err(16477): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360)
02-18 20:56:54.429: W/System.err(16477): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:670)
02-18 20:56:54.429: W/System.err(16477): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:509)
02-18 20:56:54.429: W/System.err(16477): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
02-18 20:56:54.429: W/System.err(16477): at com.example.locationservicestest.LocationWebService.doInBackground(LocationWebService.java:53)
02-18 20:56:54.429: W/System.err(16477): at com.example.locationservicestest.LocationWebService.doInBackground(LocationWebService.java:1)