Skip to content

Instantly share code, notes, and snippets.

@Chibuikekenneth
Last active October 29, 2020 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chibuikekenneth/188e18462a5608bb05093307123685ee to your computer and use it in GitHub Desktop.
Save Chibuikekenneth/188e18462a5608bb05093307123685ee to your computer and use it in GitHub Desktop.
webRequest definitions
byte[] data = Encoding.UTF8.GetBytes(content);
WebRequest request = WebRequest.Create(url);
request.Method = "POST";
request.ContentType = "application/json";
request.Headers.Add("Authorization", "Bearer " + token);
request.ContentLength = data.Length;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment