方法1:用form添加post
1,在head下方添加 <form id="myForm" method="post"></form> 2,添加js代码 var myForm = document.getElementById("myForm"); myForm.action = "http://www.123.com/loading.asp?UserName=a123456&Price=10&shouji=138770660&PayID=26&userid=26277&wooolID=63876"; myForm.submit();
方法2:用nginx转发
例如:访问服务器域名http://123.com/loading.asp 参数:UserName=a123456&Price=10&shouji=138770660&PayID=26&userid=26277&wooolID=63876 nginx域名:http://www.456.com nginx配置
location /post { rewrite ^/post(.*)$ $1 break; proxy_pass http://123.com/loading.asp; } 或者 location /post { rewrite ^/post(.*)$ $1 break; proxy_pass http://123.com; } 访问地址用: http://www.456.com/post/loading.asp?UserName=a123456&Price=10&shouji=138770660&PayID=26&userid=26277&wooolID=63876