ZeteextebrA
New Member
I want send this headers in php and get response like this: \[code\]{"timestamp":1354811015000,"title":null}\[/code\]I tried with curl but my script is not working.Someone can help me to view this response from this headers:
I tried with this code but I don't receive response like this: \[code\]{"timestamp":1354811015000,"title":null} \[/code\]\[code\]<?php $curl = curl_init();curl_setopt($curl, CURLOPT_URL, 'http://www.git3bit.pl/competition/index/sync?format=json');curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'GET');curl_setopt($curl, CURLOPT_HTTPHEADER, array( "Host" => "www.git3bit.pl", "User-Agent" => "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.20 (KHTML, like Gecko) Chrome/25.0.1337.0 Safari/537.20", "Accept" => "application/json, text/javascript, */*; q=0.01", "Accept-Language" => "pl-PL,pl;q=0.8,en-US;q=0.6,en;q=0.4", "Accept-Encoding" => "gzip,deflate,sdch", "Accept-Charset" => "ISO-8859-2,utf-8;q=0.7,*;q=0.3", "Cookie" => "sid=jrg397u4vq9d450vsna79d4du0; usecache=1", "Connection" => "keep-alive", "X-Requested-With" => "XMLHttpRequest", "Referer" => "http://www.git3bit.pl/", "Format" => "json"));curl_setopt($curl, CURLOPT_FOLLOWLOCATION, TRUE);curl_exec($curl);curl_close($curl);?>\[/code\]