zoukankan      html  css  js  c++  java
  • 在Postman用post方式请求webapi

    post方式访问webapi(参数巨大)

    • 具体postman设置见图,其他tabs默认就好。选raw后贴入键值对diagnosisTable=[...]选post点send即可。

    怎么格式化返回的json? 选json即可


    不用postman自己用jQuery实现一个post请求工具

    • 让chrome支持跨域访问:

    chrome图标上右键属性的目标改成"C:Program Files (x86)GoogleChromeApplicationchrome.exe" --disable-web-security --user-data-dir=D:workchromeTemp

    • 然后在跨域chrome中访问如下页面,注意api改成自己的,内容格式a=123&b=123
    <head>
    <meta charset="utf-8">
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js">
    </script>
    <script>
    $(document).ready(function(){
    	$("button").click(function(){
    		$('#div1').html('发送成功!');
    		var a=$('#a').val();
    		var b=$('#b').val();
    		 $.post(
    			a,
    			b ,
    			function(rlt,status,xhr){
    				$('#div1').html(rlt); 
    		})   
    	});
    });
    </script>
    api:<input type='text' style='1010px' id='a' value='http://localhost:5383/webapi/SysMgr/GetSrvDateTime'/><br> <br> 
    post内容:<br> 
    <textarea rows="20" cols="150" id='b'></textarea><br> <br> 
    	<div id='div1'>执行结果</div> 
    </head>
    <body> 
    <button>发送POST请求</button>
    

    postman发起soap请求(调用webservice接口)

  • 相关阅读:
    Discovery Scanning
    Openvas
    Common Vulnerability Scoring System CVSS
    NIagara Workbench ( 温度控制)
    Nikto and whatweb
    Jace Config
    Active information gathering-services enumeration
    Intsall The Nessus in you kali linux
    Source Code Review
    Niagara workbench (Basic )
  • 原文地址:https://www.cnblogs.com/anjun-xy/p/12937825.html
Copyright © 2011-2022 走看看