weird curl behaviour when getting xml

Seduction

New Member
im using this code to retreive an xml result from http://www.bankisrael.gov.il/currency.xml?curr=01\[code\] $c = curl_init(); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); curl_setopt($c, CURLOPT_URL, "http://www.bankisrael.gov.il/currency.xml?curr=01"); $contents = curl_exec($c);\[/code\]here is the $contents that im getting\[code\]document.cookie='uuuuuuu=180e9697uuuuuuu_180e9697; path=/';window.location.href=http://stackoverflow.com/questions/15519055/window.location.href\[/code\]and this is curl_getinfo result\[code\]Array ( => http://www.bankisrael.gov.il/cu... 1 USD USA 3.682 -0.298 thanks
 
Back
Top