This is the first time I'm using talkPHP.Hope I'll get a quick solution.
I'm trying fetch HTML of page which is publicly accessible.
here is the code I used.
$ch = curl_init();
curl_setopt($ch,CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:18.0)Gecko/20100101 Firefox/18.0");
Why it redirects even followLocation set to false? How can I avoid being redirected and get html of targeted page?What I'm doing wrong.
I'm struggling with this problem for last 3 days..Please anyone help me on this.Thanks in advance.