Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. using SHDocVw; // Don't forget
  2.  
  3. InternetExplorer IEControl = new InternetExplorer();
  4. IWebBrowserApp IE = (IWebBrowserApp)IEControl;
  5. IE.Visible = true;
  6.  
  7. // Convert the string into a byte array
  8. ASCIIEncoding Encode = new ASCIIEncoding();
  9. byte[] post = Encode.GetBytes("username=fabio&password=123");
  10.  
  11. // The destination url
  12. string url = "http://example.com/check.php";
  13.  
  14. // The same Header that its sent when you submit a form.
  15. string PostHeaders = "Content-Type: application/x-www-form-urlencoded";
  16.  
  17. IE.Navigate(url, null, null, post, PostHeaders);
  18.  
  19. <?php
  20. echo $_POST['username'];
  21. echo " ";
  22. echo $_POST['password'];
  23. ?>
  24.  
  25. <%
  26. response.write(Request.Form("username"))
  27. response.write(" " & Request.Form("password"))
  28. %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement