Http发布到服务器 [英] Http Post to server

查看:107
本文介绍了Http发布到服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Web应用程序MVC VS 2015,但是当我尝试使用Http Post向服务器请求

时,它会在代码上出错。



通常我正在使用https://msdn.microsoft.com/en-us/library/debx8sh9(v = vs.110).aspx并且它的工作正常



谢谢 



解决方案

也许使用'HttpWebRequest request = WebRequest.CreateHttp(...)'而不是
创建


< span style ="line-height:107%; font-family:'Calibri',sans-serif; font-size:11pt">然后显示有关其他错误的详细信息。


I am using web application MVC VS 2015, but when I try to 

request to server using Http Post it's give error on code.

Usually I am using https://msdn.microsoft.com/en-us/library/debx8sh9(v=vs.110).aspx and it's work

Thanks 

解决方案

Maybe use ‘HttpWebRequest request = WebRequest.CreateHttp(…)’ instead of Create.

Then show the details about the other errors.


这篇关于Http发布到服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆