Title / Description
Code <?php //URL with parameters $url = <<<EOF $address."?".$parameters EOF; //build credentials string $credentials = $username.":".$password; //Create HTTP request $curl_handle = curl_init(); curl_setopt($curl_handle, CURLOPT_URL, $url); curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER,1); curl_setopt($curl_handle, CURLOPT_USERPWD, $credentials); $response = curl_exec($curl_handle); curl_close ($curl_handle); echo $response; ?>
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code