private void btnStart_Click(object sender, System.EventArgs e) { if (http1.Active) { return; } httpRequest1.Clear(); httpRequest1.AddSubmitFile("FileName", edtName.Text); try { memResult.Text = http1.Post(edtHost.Text); http1.Close(); MessageBox.Show("Process completed successfully."); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnStart_Click(object sender, System.EventArgs e) { if (http1.Active) { return; } httpRequest1.Items.FormFieldByName("Name").FieldValue = edtName.Text; httpRequest1.Items.FormFieldByName("Birthdate").FieldValue = edtBirthdate.Text; httpRequest1.Items.FormFieldByName("Account").FieldValue = edtAccount.Text; try { memResult.Text = http1.Post(edtHost.Text); http1.Close(); MessageBox.Show("Process completed successfully."); } catch (Exception ex) { MessageBox.Show(ex.Message); } }