Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net;
- using System.Text;
- using System.Threading.Tasks;
- using System.Net.Http;
- using DistCalcRESTService;
- namespace RESTConsoleClient
- {
- class Program
- {
- static void Main(string[] args)
- {
- using (WebClient client = new WebClient())
- {
- string response = client.UploadString("http://localhost:54376/dist?x1=2&y1=5&x2=6&y2=7","POST","");
- // Write values.
- Console.WriteLine("--- WebClient result ---");
- Console.WriteLine(response);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement