>>>函数名:httpPost
功能:向$url POST $data数据
code:
/**
* [httpPost 向$url POST $data数据]
* @param [sting] $url [action url]
* @param [array] $data [数据数组 eg:$data = array('user'=>'myname','pwd'=>...
分类:
Web程序 时间:
2015-05-01 10:45:58
阅读次数:
164
1.fragment的使用;
2.HttpPost服务器端与客户端交互;
3.Json数据上传和解析;
4.服务端图片加载到本地的处理方法;
5.GridView横向单行滑动;
6.GridView选中;
7.定制Listview;
8.style,dimens,drawable,theme的使用。...
分类:
移动开发 时间:
2015-04-30 16:10:39
阅读次数:
179
后台代码: [HttpPost] public string AjaxWeather() { string CityName = string.IsNullOrEmpty(Request.Form["city"]) ? "" : Req...
分类:
Web程序 时间:
2015-04-28 17:53:28
阅读次数:
233
1、先使用UserManager.RemovePassword(UserID),清空密码,再使用UserMnager.AddPassword(UserId,newPassword)增加新密码。 [HttpPost] [ValidateAntiForgeryToken] p...
分类:
其他好文 时间:
2015-04-25 14:57:26
阅读次数:
241
api [HttpPost] public string PostAvartos(Test model){ if (model != null) { LoggerHelper.WriteInfo(model.id + " " + model.name); } else { L...
之前由于上线验证需要各种修改配置,需要运维同事处理,太麻烦,今天用程序处理了修改配置文件,一劳永逸,小记下: [HttpPost] public ActionResult SaveSetting(string key, string value) { ...
分类:
其他好文 时间:
2015-04-20 16:40:49
阅读次数:
100
一、HttpClinet方式1、HTTP GET 示例: 1 public class TestHttpGetMethod{
2 public void get(){
3 BufferedReader in = null;
4 try{
5 HttpClient client = new DefaultHt...
分类:
移动开发 时间:
2015-04-17 11:43:22
阅读次数:
314
懒得打字/** * 发送post请求传递Json */ public void jieXi() { new Thread(new Runnable() { public void run() { // Json中...
分类:
移动开发 时间:
2015-04-15 18:58:18
阅读次数:
163
HttpResponseresponse=client.execute(httpPost);
//获取响应码
status=response.getStatusLine().getStatusCode();
HttpEntityhttpEntity=response.getEntity();
//将H中返回实体转化为输入流
InputStreamis=httpEntity.getContent();
//读取输入流,即返回文本内容
StringBuf..
分类:
Web程序 时间:
2015-04-14 20:00:21
阅读次数:
170
通过编写客户端,服务器端代码完成一个Android登陆实战项目项目分为6个部分服务器:Servlet客户端:Activity(界面)客户端:Thread和Handler客户端:HttpClient-HttpGet客户端:HttpClient-HttpPost客户端也就是我们的手机客户端第一部分.服务器:Servlet服务器端用的开发工具My..
分类:
移动开发 时间:
2015-04-10 07:14:15
阅读次数:
144