Thank you for your suggestion; actually I used curl, but problem is to include the above http headers... which i did nt find through curl; however i tried this approach..
$url = "http://apis.live.net/V4.0/cid-CID/Contacts/AllContacts";
$compURL = http_build_query(array('access_token' => $accessToken));
$opts = array('http' => array(
'method' => 'GET',
'header' => 'Content-type: application/json',
//'header' => 'Host: apis.live.net',
'user_agent' => 'Authorization: WRAP',
'content' => $compURL
//'content' => $postdata,
)
);
$response = file_get_contents($url, true, $context);
but did nt recieve any response.. how can i use same stuff with curl instead of "file_get_contents()" because i also want to see which URL i am sending.