Posting an url-encoded xml to the url

前端 未结 1 1170
被撕碎了的回忆
被撕碎了的回忆 2021-01-28 06:40

Hello I have a xml document in string that I am trying to post to a url.

 string xml = File.ReadAllText(Server.MapPath(\"~/test.txt\"));
      myurl=(uri+Server         


        
1条回答
  •  鱼传尺愫
    2021-01-28 07:07

    Try the mini-library I posted here. You'd use it like:

    HTTP_Post(uri, Server.UrlEncode(xml), DataType.XML)
    

    I don't know if it'd handle the specific field name you need to use, though.

    0 讨论(0)
提交回复
热议问题