I have the following PHP script which should get the content of a page, that is behind a login-form.
It is working fine on my localhost server, but it doesn\'t work
Try adding the FOLLOWLOCATION option so it follows the redirect it's getting:
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);