你就Post数据过去就可以了,数据内容以json格式#region POST提交参数
        /// <summary>
        /// POST提交参数
        /// </summary>
        /// <param name="PostUrl">POST的地址,需要传送的地址</param>
        /// <param name="Parameters">POST提交参数,例如“client_id=2866517568&client_secret=9c”和get的链接类似</param>
        /// <returns></returns>
        public static string Post(string PostUrl, string Parameters)
        {
            string content = string.Empty;
            try
            {
                //转换为字节数组
                byte[] bytesRequestData = Encoding.UTF8.GetBytes(Parameters);
                //path不是登录界面,是登录界面向服务器提交数据的界面
                HttpWebRequest myReq = (HttpWebRequest)HttpWebRequest.Create(PostUrl);
                myReq.Method = "post";
                myReq.ContentType = "application/x-www-form-urlencoded";
                //填充POST数据
                myReq.ContentLength = bytesRequestData.Length;
                Stream requestStream = myReq.GetRequestStream();
                requestStream.Write(bytesRequestData, 0, bytesRequestData.Length);
                requestStream.Close();
                //发送POST数据请求服务器
                HttpWebResponse HttpWResp = (HttpWebResponse)myReq.GetResponse();
                //获取服务器返回信息
                Stream myStream = HttpWResp.GetResponseStream();
                StreamReader reader = new StreamReader(myStream, Encoding.UTF8);
                content = reader.ReadToEnd();
                reader.Close();
                HttpWResp.Close();
            }
            catch (Exception ex)
            {
                content = ex.ToString();
            }
            return content;
        }
        #endregion

解决方案 »

  1.   

    这个是cs post数据,你也可以用js
      

  2.   

    他这个应该是 外部网页的接口。 看你的程序是什么。找一种能够访问到这个网页的方法。用post或者get方法把数据传送到他的方法里面去就行了
      

  3.   

    对。自己写个post请求就行了。
      

  4.   

    是的,上面说的都对。自己拿出数据,序列化成json格式,然后POST给这个接口。