Skip to content Skip to sidebar Skip to footer

Why Do I Get Android : The Target Server Failed To Respond?

API Link : http://www.familybuds.com/storegrunt-new/api_home/validate_step_one/platform/1 POST parameter : store_name = 'abc' the code is on GoDaddy Server This api was working fin

Solution 1:

HttpParamshttpParameters=newBasicHttpParams();
HttpConnectionParams.setConnectionTimeout(httpParameters, 10000);
HttpConnectionParams.setSoTimeout(httpParameters, 10000+12000);


DefaultHttpClientclient=newDefaultHttpClient(httpParameters);
HttpPosthttppost=newHttpPost(url);

Try replacing above code with this

HttpParamshttpParameters=newBasicHttpParams();
HttpConnectionParams.setConnectionTimeout(httpParameters, 10000);
HttpConnectionParams.setSoTimeout(httpParameters, 10000+12000);


DefaultHttpClientclient=newDefaultHttpClient();
HttpPosthttppost=newHttpPost(url);
httpost.setParams(httpParameters);

This solution worked for me....

Post a Comment for "Why Do I Get Android : The Target Server Failed To Respond?"