zoukankan      html  css  js  c++  java
  • 第一次抓包

    登录时的抓包情况 

    方法是get 

    上传 图片时的情况 

    方法是post ,java代码 如下

    HttpUtils http = new HttpUtils();
    		
    		RequestParams params = new RequestParams();
    		params.addBodyParameter("token",token );
    		params.addBodyParameter("file", file);
    		LogUtils.i(TAG, "http params:"+params.toString());
    		http.send(HttpRequest.HttpMethod.POST, 
    				URLConstant.FileServerAddressProxy, 
    				params,
    

      

    同为post ,如果代码为

    HttpUtils http = new HttpUtils();
    		
    		RequestParams params = new RequestParams();
    		params.addQueryStringParameter("token",token );
    		params.addBodyParameter("file", file);
    		LogUtils.i(TAG, "http params:"+params.toString());
    		http.send(HttpRequest.HttpMethod.POST, 
    				URLConstant.FileServerAddressProxy, 
    				params,
    

    则结果 为

    如果 代码 如下

    HttpUtils http = new HttpUtils();
    		
    		RequestParams params = new RequestParams();
    		params.addHeader("token",token );
    		params.addBodyParameter("file", file);
    		LogUtils.i(TAG, "http params:"+params.toString());
    		http.send(HttpRequest.HttpMethod.POST, 
    				URLConstant.FileServerAddressProxy, 
    				params,
    

     结果 为

    原来的上传 图片的抓包

     

  • 相关阅读:
    [HNOI2002]营业额统计 (Splay)
    [POJ1664] 放苹果 (动态规划,组合数学)
    [AHOI2009]维护序列 (线段树)
    类型转换求和
    懒人创造方法
    编程的精义
    10-instanceof
    9-接口
    6-SUPER关键字
    5-重写与重载
  • 原文地址:https://www.cnblogs.com/chuiyuan/p/4127148.html
Copyright © 2011-2022 走看看