note 111557 modified in curl.examples by danbrown

From: Date: Mon, 04 Mar 2013 17:39:23 +0000
Subject: note 111557 modified in curl.examples by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-193797@lists.php.net to get a copy of this message
to get the full webpages from head as well as body <?php $curl = curl_init('http://example.com'); curl_setopt($curl, CURLOPT_FAILONERROR, true); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); $result = curl_exec($curl); echo $result; ?> --was-- to get the full webpages from head as well as body $curl = curl_init('http://example.com'); curl_setopt($curl, CURLOPT_FAILONERROR, true); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); $result = curl_exec($curl); echo $result; http://php.net/manual/en/curl.examples.php

« previous php.notes (#193797) next »