rev update
This commit is contained in:
parent
c3c2f0a6bd
commit
615b060352
3 changed files with 9 additions and 7 deletions
|
@ -15,8 +15,10 @@ function fetch_url($url,$binary = false, &$redirects = 0, $timeout = 0, $accept_
|
|||
|
||||
@curl_setopt($ch, CURLOPT_HEADER, true);
|
||||
|
||||
@curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
|
||||
@curl_setopt($ch, CURLOPT_MAXREDIRS, 5);
|
||||
|
||||
// These settings aren't needed. We're following the location already.
|
||||
// @curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
|
||||
// @curl_setopt($ch, CURLOPT_MAXREDIRS, 5);
|
||||
|
||||
if (!is_null($accept_content)){
|
||||
curl_setopt($ch,CURLOPT_HTTPHEADER, array (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue