0
我在执行Android的以下信息[Android]产品:为什么HttpPost使用GET方法?
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("http://www.example.com");
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
nameValuePairs.add(new BasicNameValuePair("account", "login"));
nameValuePairs.add(new BasicNameValuePair("email", "[email protected]));
httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
HttpResponse response = httpclient.execute(httppost);
在服务器端我返回cgi.request_method变量,它是GET。
不应该是POST吗?我错过了什么吗?
它可以是什么样的错误配置的?我正在使用ColdFusion,它可以在网站上正确提供页面和处理表单文章。 – Andre
对不起,我不太了解ColdFusion。 – Melllvar