Last active
October 29, 2020 14:55
-
-
Save Chibuikekenneth/188e18462a5608bb05093307123685ee to your computer and use it in GitHub Desktop.
webRequest definitions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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