Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Get cURL resource
- $curl = curl_init();
- // Set some options - we are passing in a useragent too here
- curl_setopt_array($curl, array(
- CURLOPT_RETURNTRANSFER => 1,
- 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,
- CURLOPT_USERAGENT => 'Codular Sample cURL Request'
- ));
- // Send the request & save response to $response
- $response = curl_exec($curl);
- // Close request to clear up some resources
- curl_close($curl);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement