Guest User

Untitled

a guest
Sep 13th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. $user = "TestUsername";
  2. $pass = "TestPassword";
  3.  
  4. $curl = curl_init();
  5. $curl_config = array(
  6. CURLOPT_URL => "http://website_name.com/form_action_url",
  7. CURLOPT_POST => true,
  8. CURLOPT_RETURNTRANSFER => true,
  9. CURLOPT_POSTFIELDS => array('user' => urlencode($user),
  10. 'pass' => urlencode($pass)
  11. ),
  12. CURLOPT_HEADER => true,
  13. );
  14. curl_setopt_array($curl, $curl_config);
  15. $response= curl_exec($curl);
Add Comment
Please, Sign In to add comment