Advertisement
Guest User

bbbbbbbb

a guest
May 30th, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.91 KB | None | 0 0
  1. #AutoIt3Wrapper_AU3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
  2.  
  3. #include "WinHttp.au3"
  4.  
  5. Opt("MustDeclareVars", 1)
  6.  
  7. ; !!!Note that this example will fail because of invalid username and password!!!
  8.  
  9. ; Authentication data
  10. Global $sUsername = "UserName"
  11. Global $sPassword = "Password"
  12.  
  13. ; Address
  14. Global $sAddress = "http://127.0.0.1/"
  15.  
  16. ; Initialize and get session handle
  17. Global $hOpen = _WinHttpOpen()
  18.  
  19. ; Get connection handle
  20. Global $hConnect = _WinHttpConnect($hOpen, $sAddress)
  21.  
  22. ; Request
  23. Global $hRequest = _WinHttpOpenRequest($hConnect, _
  24.         "POST", _ ; verb
  25.         "shell/BITE/index.php", _    ; target
  26.         Default)
  27.  
  28. ; Send it
  29. _WinHttpSendRequest($hRequest, _
  30.         "var", "&var=file.php")
  31.  
  32. ; Wait for the response
  33. _WinHttpReceiveResponse($hRequest)
  34.  
  35. ; Close open handles and exit
  36. _WinHttpCloseHandle($hRequest)
  37. _WinHttpCloseHandle($hConnect)
  38. _WinHttpCloseHandle($hOpen)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement