English 中文(简体)
Literal Uri的请求
原标题:Literal Uri request

我看到了一些要求使用不符合规格的Uris员额,但没有一个答案。 I m 书写视窗电话控制,它需要利用吉大港山区技术网要求ATOM数据。 URL需要在其中列入3%d的特性(平等标志)。 这是不可谈判的,因为它是我无法控制的第三方服务。 I:

I m使用WebClient, 下载StringAsync, 但它只接受Uri物体,而不是在座标中加入URL。 Uri物体自动放弃这些特征,并发送:

http://host.com?arg1=val1&arg=val2=

这失败了。 有一种“UserExcaped”的“User Excaped”概念,完全是我所需要的,但却是没有的。 我担心,我的唯一选择是使用原始袖珍和最低限度的吉大港山区方案支持来实施我自己的铺设下载方法。

任何其他想法? 非常感谢帮助!

UPDATE


    string apps = "http://blah.com/api?prev=AAAAAAA%3d&next=BBBBBBB";
    var u = new Uri(apps);
    string apps2 = u.ToString();
    Debug.Assert(apps == apps2); // That %3d will always be converted to an equals sign

我还要指出,如果我试图通过将百分比保持在25%(即“AAAAAAA%253d&next=BBB”)而加以分离,那么我就认为,确切的字面描述仍然未变! 仅有 %3 表明,它积极将平等转化为平等标志。

最佳回答
问题回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签