Advertisement
Guest User

Untitled

a guest
Apr 8th, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. // Get cURL resource
  2. $curl = curl_init();
  3. // Set some options - we are passing in a useragent too here
  4. curl_setopt_array($curl, array(
  5. CURLOPT_RETURNTRANSFER => 1,
  6. CURLOPT_URL => 'https://www.nationalbackgrounddata.net/xmlgateway/affiliatelogin.do?affiliatecode=E3118&username=' . $username . '&password=' . $password . '&firstname=' . $first_name . '&lastname=' . $last_name . '&ssn=' . $ssn . '&state=' . $state . '&streetnumber=' . $streetnumber . '&streetname=' . $streetname . '&postalcode=' . $postalcode . '&municipality=' . $municipality . '&product=National RegistryCHECK&permissiblepurpose=' . $permissiblepurpose . '&version=' . $version . '&endusercode=' . $endusercode . '&enduserstate=' . $enduserstate,
  7. CURLOPT_USERAGENT => 'Codular Sample cURL Request'
  8. ));
  9. // Send the request & save response to $response
  10. $response = curl_exec($curl);
  11. // Close request to clear up some resources
  12. curl_close($curl);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement