url_rl = "https://www.yijiupi.com/v31/Product/ListProduct" payload = '{"currentPage":1,"data":{"sonCategoryId":"%s","categoryIds":["%s"],"saleModel":-... ...
分类:
其他好文 时间:
2019-05-02 18:32:42
阅读次数:
201
在登录页面login.html初次登录时,发送post请求,对返回的数据判断,如果code=0,表示已经登录成功的用户。则将其_id数据设置到类似cookie的全局中去。 createNew:true 是对页面刷新数据,不刷新页面会默认使用原页面,无法获取到数据 在index.html点击设置时,会 ...
分类:
移动开发 时间:
2019-05-01 10:25:41
阅读次数:
251
get请注意,查询字符串(名称/值对)是在 GET 请求的 URL 中发送的GET 请求可被缓存GET 请求保留在浏览器历史记录中GET 请求可被收藏为书签GET 请求不应在处理敏感数据时使用GET 请求有长度限制 ,大多数浏览器通常都会限制url长度在2K个字节GET 请求只应当用于取回数据只接受 ...
分类:
其他好文 时间:
2019-04-21 16:00:43
阅读次数:
198
1.发送post请求,可以是json,html curl -H 'content-type: application/json' -X POST -d '{"name":"shfbjsf"}' http://www.jnshu.com/aaa 2.get 请求 curl https://way.jd ...
分类:
Web程序 时间:
2019-04-11 17:48:37
阅读次数:
181
遇到的问题描述 :axios post 请求,后端接收不到参数。 我们的接口是java,用@RequestParam来接收前端的参数 解决方案:使用qs;axios中已经包含有qs,所以无需重新安装,直接引入就好 import Qs from 'qs'//引入qs let chedata = { d ...
分类:
移动开发 时间:
2019-04-09 16:38:19
阅读次数:
566
array( 'method' => 'POST', 'header' => 'Content-type:application/x-www-form-urlencoded', 'content' => $postdata, 'timeout' => 15 * 60 // 超时时间(单位:s) ) ... ...
分类:
Web程序 时间:
2019-04-08 13:23:40
阅读次数:
156
Retrofit官网:https://square.github.io/retrofit/ 示例如下 HttpService.java Entry.java build.gradle 使用@Headers("Content-Type: application/json")设置Content-Type ...
分类:
Web程序 时间:
2019-03-30 23:58:14
阅读次数:
2569
https://my.oschina.net/u/2428630/blog/3004860 uni-app框架中 安装(项目根目录下运行) 文件中引用 import uniRequest from 'uni-request'; 使用方法 请求方法的别名 全局配置 发送get请求 发送post请求 以 ...
分类:
移动开发 时间:
2019-03-27 11:16:17
阅读次数:
1819
题目: http://123.206.87.240:8002/post/ Brup抓包 1、修改Get 为 POST 2、添加 Content-Type: application/x-www-form-urlencoded //Content-Type 内容类型 3、发送 POST请求的值 ...
分类:
其他好文 时间:
2019-03-23 16:08:45
阅读次数:
149
介绍 基于GET请求 带参数的GET请求->params 带参数的GET请求->headers 带参数的GET请求->cookies 基于POST请求 发送post请求,模拟浏览器的登录行为 补充 响应Response response属性 编码问题 获取二进制数据 解析json Redirecti ...
分类:
其他好文 时间:
2019-03-12 21:07:41
阅读次数:
193