发布一个URL-CN codeD XML的url [英] Posting an url-encoded xml to the url

查看:118
本文介绍了发布一个URL-CN codeD XML的url的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我有一个字符串的XML文档,我想张贴到一个URL。

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.UrlEncode(xml));
       Response.Write("<a input type="hidden" name="cxml-urlencoded" value="myurl"></a>");

该回复于不工作,因为它是不正确写入我碰到红扭动下划线开始隐藏的话说预期) 任何想法如何去做? 谢谢

The Response.Write is not working as it is not properly written i get red wiggly underline starting hidden saying expected ")" Any ideas how to go about it? Thanks

推荐答案

尝试小型图书馆,我张贴这里。你会使用它像:

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.

这篇关于发布一个URL-CN codeD XML的url的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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