Created
August 15, 2021 14:38
-
-
Save SibeeshVenu/fe0d1863a944dddb528ecff8d376cf76 to your computer and use it in GitHub Desktop.
This file contains 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
HttpClient cons = new HttpClient(); | |
cons.BaseAddress = new Uri("http://localhost:7967/"); | |
cons.DefaultRequestHeaders.Accept.Clear(); | |
cons.DefaultRequestHeaders.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/json")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment