Examples of BasicNameValuePair


Examples of org.apache.http.message.BasicNameValuePair

          HttpClient httpclient = new DefaultHttpClient();
          httpclient.getParams().setParameter(HttpMethodParams.SO_TIMEOUT, 60000*30);
           httpclient.getParams().setParameter(HttpMethodParams.HTTP_CONTENT_CHARSET, "UTF8");
          HttpPost httppost = new HttpPost("http://" + this.strurl+ "/higo/insert.jsp");
          List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(1);
          nameValuePairs.add(new BasicNameValuePair("project",parser.tablename));
          nameValuePairs.add(new BasicNameValuePair("json", parser.jsons));

          httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs,"UTF-8"));

          HttpResponse response = httpclient.execute(httppost);

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.