2021
05-15
05-15
C# 调用WebApi的实现
1.WebRequest方式Post:privatevoidbutton1_Click(objectsender,EventArgse){stringss=HttpPost("http://localhost:41558/api/Demo/PostXXX","{Code:\"test089\",Name:\"test1\"}");}publicstaticstringHttpPost(stringurl,stringbody){//ServicePointManager.ServerCertificateValidationCallback=newRemoteCertificateValidationCallback(CheckValidat...
继续阅读 >