Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var uri = "https://southcentralus.api.cognitive.microsoft.com/customvision/v2.0/Prediction/f1d565db-788a-4108-b77c-59cbe586e502/url?iterationId=6be50293-23bb-4f06-9024-260d7df2cc14";
- var client = new HttpClient();
- var httpRequestMessage = new HttpRequestMessage
- {
- RequestUri = new Uri(uri),
- Method = HttpMethod.Post,
- Headers = {
- {"Prediction-Key", "3c16885353b24d5991593fa8f81c265f"},
- {"Prediction-Key", "application/json"}
- },
- Content = new ByteArrayContent(Encoding.UTF8.GetBytes("{\"Url\": \"https://1.bp.blogspot.com/-cE_2wW92BnA/WZ107180o-I/AAAAAAAAAHc/eWtKLeahdhEADY_ULvRch2bXluKxT8kYgCLcBGAs/s728-e100/email-exploit.png\"}"))
- };
- var resp = await client.SendAsync(httpRequestMessage);
- return await resp.Content.ReadAsStringAsync();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement