2

I am trying to create a GET request to a REST webservice that reuires an Authorization token as a querystring parameter. So, The request needs to be in the format:

http://endpoint.com/action/resource?Auth=12345

I am drawing a blank as how to add the querystring to my HttpWebRequest without just building a string. Is there another (read: better) option?

Thanks in advance!

2

1 Answer 1

1

QueryString Builder class is good and has a fluent interface.

Also UrlBuilder class on CodeProject. Similar to System.UriBuilder has better support for working with the QueryString.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.