asp.net中如何实现Https post的请求,请求的是一个https的网页,我用HttpWebRequest(post方式,带参数)试过了,但得到的是"The gateway no longer supports the requested method of integration."错误信息,想了一下觉得可能是协议不同,应该用https协议的post请求,请大家帮助,谢谢

解决方案 »

  1.   

    可能是协议的post请求有问题! 
      

  2.   

    .net里有处理https协议的类吗,昨天找了一下,没有找到明确说明可以处理https的
      

  3.   

     Response.Write(@"   
            <form   id=""form3""   action=""" + url + @"""   method=""post"">   
            <input   type=""hidden""   name=""" + name + @"""   value=""" + namevalue + @""">   
            <input   type=""hidden""   name=""" + password + @"""   value=""" + passwordvalue + @""">   
            </form>   
            <script   language=""javascript"">   
            document.getElementById('form3').submit();   
            </script>   
            ");
      

  4.   

    谢谢各位,问题已解决,用的是HttpWebRequesst类