aa

Php code posted
created at 09 Nov 12:02, updated at 02 Apr 07:13

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?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;
?>
457 Bytes in 8 ms with coderay