note 25197 modified in function.curl-setopt by danbrown

From: Date: Sun, 17 May 2009 17:35:42 +0000
Subject: note 25197 modified in function.curl-setopt by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155004@lists.php.net to get a copy of this message
If you set return transfer to 1 and are sending a post form and find that this crashes php try setting follow location to 1 also. I'm not exactly sure why this crashed, but after i used follow it stopped. <?php curl_setopt ($sess, CURLOPT_FOLLOWLOCATION, '1'); curl_setopt ($sess, CURLOPT_RETURNTRANSFER, '1'); ?> --was-- If you set return transfer to 1 and are sending a post form and find that this crashes php try setting follow location to 1 also. I'm not exactly sure why this crashed, but after i used follow it stopped. curl_setopt ($sess, CURLOPT_FOLLOWLOCATION, '1'); curl_setopt ($sess, CURLOPT_RETURNTRANSFER, '1'); http://php.net/manual/en/function.curl-setopt.php

« previous php.notes (#155004) next »