Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. protected void submitBtn_Click(object sender, EventArgs e)
  2. {
  3.  
  4. {
  5.  
  6. string url = "http://localhost:8080/view/BUILD/job/TESTBUILD/buildWithParameters?token=token123&user=testuser&pass=test&cause=Testmessage";
  7. HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(url);
  8. webRequest.Method = "POST";
  9. HttpWebResponse resp = (HttpWebResponse)webRequest.GetResponse();
  10. Response.Redirect(http://localhost:8080, "_blank", "fullscreen=1,menubar=yes,toolbar=yes,scrollbars=yes,status=yes,titlebar=yes");
  11.  
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement