note 25197 deleted from function.curl-setopt by datibbaw
| From: | datibbaw@php.net | Date: | Tue, 18 Mar 2014 02:37:03 +0000 |
| Subject: | note 25197 deleted from function.curl-setopt by datibbaw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-198947@lists.php.net to get a copy of this message | ||
Note Submitter: mrcheezy at hotmail dot com
----
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');
?>