note 97452 modified in ref.curl by danbrown

From: Date: Tue, 20 Apr 2010 16:30:16 +0000
Subject: note 97452 modified in ref.curl by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-168456@lists.php.net to get a copy of this message
One of the reasons why curl can be slow is that it appends header "Expect: 100-continue". Try this fix: <?php $headers = array( "Expect:", // more headers here ); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); ?> --was-- One of the reasons why curl can be slow is that it appends header "Expect: 100-continue". Try this fix: $headers = array( "Expect:", // more headers here ); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); http://php.net/manual/en/ref.curl.php

« previous php.notes (#168456) next »