English 中文(简体)
.Net WebRequest。 创建代号为URI
原标题:.Net WebRequest.Create Decoding encoded URI

我用网络要求向联系人协会发出一些通话,并打上了一个编码问题。 链接 在APIC中,需要一个被编码的URI作为试图运行的监视参数之一。

我们正在把这块pi子 calling到一起。 网上查询。 创建;当我们通过《世界投资报告》时,它就编码了,因此,我们可以从呼吁中获取数据。 试图打开世界人权学会这样的一席之地

http://api.linkedin.com/v1/people/url=http%3A%2F%2Fwww.linkedin.com%2Fin%2FProfileName

我们是否在试卷中建立了机制,以阻止它贬低国际权利学会的过去;或为此而开展的工作?

最佳回答

我不相信这项工作会奏效,但它显示出一些希望。

static readonly string UrlString =
  "http://api.linkedin.com/v1/people/url=http%3A%2F%2Fwww.linkedin.com%2Fin%2FProfileName";


Uri myUri = new Uri(Uri.EscapeUriString(UrlString));
Console.WriteLine(myUri.ToString());  // this is only to show the string for debugging

HttpWebRequest request = (HttpWebRequest)WebRequest.Create(myUri);

<代码>Console。 书写字标/代码与你想要的拼写格式相同。 如果你将Uri通过WebRequest。 创建,可能很好地做你想要的东西。

问题回答

暂无回答




相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

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. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...