Advertisement
Guest User

Untitled

a guest
Apr 7th, 2020
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.40 KB | None | 0 0
  1. string serviceUrl = Dts.Variables["$Project::ServiceUrl"].Value.ToString();    
  2.                 HttpClient client = new HttpClient();    
  3.                 client.BaseAddress = new Uri(serviceUrl);    
  4.                 // Add an Accept header for JSON format.    
  5.                 client.DefaultRequestHeaders.Accept.Add(    
  6.                     new MediaTypeWithQualityHeaderValue("application/json"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement