Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7827279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:47:27+00:00 2026-06-02T09:47:27+00:00

I am writing some rest calls to the LinkedIn API using web request and

  • 0

I am writing some rest calls to the LinkedIn API using web request and have hit an encoding issue.The LinkedIn API takes requires an encoded URI as one of the parameters on the lookup i am trying to run.

We are calling the api through .Net’s WebRequest.Create; and when we pass in the URI it decodes it and as a result we can’t get the data from the call. Im trying to open a URI like this

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

Is there a mechanism in the webrequest class to stop it decoding the passed in URI; or a work around for this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T09:47:29+00:00Added an answer on June 2, 2026 at 9:47 am

    I’m not certain that this will work, but it shows some promise.

    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);
    

    The output from Console.WriteLine there has the same format as the string you want. If you pass that Uri to WebRequest.Create, it may very well do what you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing some code that calls a web service, reads back the response and
Just writing some CSS and I have a pretty cool Search form where you
I'm writing a service (say, service.com) that provides a REST API to external apps
I'm writing some code using PacketDotNet and SharpPCap to parse H.225 packets for a
I have multiple calls to many RESTful services. I translate to PHP using native
I'm writing a library that wraps around a REST API. The wrapper I'm creating
I have a web application written in ASP .NET MVC 3. I'm using ACS
I am writing a REST API for a service that will accept user contributed
I have a bit of a problem with some html im writing and was
I am writing some node.js code using the node-mongodb driver. I decided to cache

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.