someone help me about curl php, with localhost it working, but build on WEB is not working with code:

```
public function curl()
    {
        $this->channel = curl_init();
        // you might want the headers for http codes
        curl_setopt( $this->channel, CURLOPT_HEADER, true );
        curl_setopt($this->channel, CURLOPT_USERAGENT, sprintf("Mozilla/%d.0",rand(4,5)));
        curl_setopt( $this->channel, CURLOPT_FOLLOWLOCATION, true );   
        curl_setopt($this->channel, CURLOPT_VERBOSE, true);
        curl_setopt($this->channel, CURLOPT_FAILONERROR, true);
        curl_setopt($this->channel, CURLOPT_TIMEOUT,60); 
        curl_setopt( $this->channel, CURLOPT_RETURNTRANSFER, true );
        curl_setopt($this->channel,CURLOPT_ENCODING,"gzip"); 
        curl_setopt($this->channel, CURLOPT_SSL_VERIFYHOST, 0);
        curl_setopt($this->channel, CURLOPT_SSL_VERIFYPEER, 0);
    }

```

i build to web and error: "Object moved to here", but i use xampp localhost is working.