Make a REST request using curl

<?php
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,'http://username:password@www.example.com/REST/request.xml');
curl_setopt($ch,CURLOPT_HEADER,0);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
$xml = curl_exec($ch);
curl_close($ch);
?>

Page Comments (Click to edit)






[Click to add or edit comments])

Please prepend comments below including a date

Design by N.Design Studio, adapted by solidGone.org (version 1.0.0)
Have a nice day.