您的发帖请求没有足够快地收到,请重试 [英] Your post request is not being received quickly enough please retry
问题描述
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost(
"http://xxxxxxx/geo/getlocation.php");
MultipartEntity reqEntity = new MultipartEntity(
HttpMultipartMode.BROWSER_COMPATIBLE);
reqEntity.addPart("longtiude", new StringBody(mylong));
reqEntity.addPart("latitude", new StringBody(mylat));
reqEntity.addPart("newtimeString", new StringBody(time));
reqEntity.addPart("dateString", new StringBody(date));
reqEntity.addPart("locationName", new StringBody(address));
httppost.setEntity(reqEntity);
HttpResponse response = httpclient.execute(httppost);
String responseBody = EntityUtils
.toString(response.getEntity());
Log.e("response", responseBody);
我正在使用httpclient使用以上代码在服务器上发布.但是我得到了这样的回应
i am using httpclient to post on server using above code. but i got response like this
Your post request is not being received quickly enough please retry
我具有正确的添加权限和jar文件,也尝试了basicnamevaluepair,但响应相同.不推荐使用httpclient,但是应该知道...
i have add permissions and jar files correctly,also tried with basicnamevaluepair but same response. httpclient deprecated but it should work know...
我不知道原因.我做错了.任何帮助请...
i don't know the reason. what i am doing wrong. any help pls...
推荐答案
您尝试访问的服务器已启用慢速HTTP Post DDoS攻击",这拒绝了您的请求.该规则通常有一定的时间来接收整个请求,否则,该请求将被拒绝.
The server you are trying to hit has 'Slow HTTP Post DDoS Attacks' enabled, which is rejecting your request. The rule generally has some allowed time to receive the whole request, if it does not then the request will be denied.
这篇关于您的发帖请求没有足够快地收到,请重试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!