<?php
-if ( !in_array('Snoopy', get_declared_classes() ) ) :
+
+/**
+ * Deprecated. Use WP_HTTP (http.php) instead.
+ */
+_deprecated_file( basename( __FILE__ ), '3.0', WPINC . '/http.php' );
+
+if ( ! class_exists( 'Snoopy', false ) ) :
/*************************************************
Snoopy - the PHP net client
chr(176),
chr(39),
chr(128),
- "ä",
- "ö",
- "ü",
- "Ä",
- "Ö",
- "Ü",
- "ß",
+ chr(0xE4), // ANSI ä
+ chr(0xF6), // ANSI ö
+ chr(0xFC), // ANSI ü
+ chr(0xC4), // ANSI Ä
+ chr(0xD6), // ANSI Ö
+ chr(0xDC), // ANSI Ü
+ chr(0xDF), // ANSI ß
);
$text = preg_replace($search,$replace,$document);
return false;
}
- // check if there is a a redirect meta tag
+ // check if there is a redirect meta tag
if(preg_match("'<meta[\s]*http-equiv[^>]*?content[\s]*=[\s]*[\"\']?\d+;[\s]*URL[\s]*=[\s]*([^\"\']*?)[\"\']?>'i",$results,$match))
if($this->read_timeout > 0)
$cmdline_params .= " -m ".$this->read_timeout;
- $headerfile = tempnam($temp_dir, "sno");
+ $headerfile = tempnam($this->temp_dir, "sno");
exec($this->curl_path." -k -D \"$headerfile\"".$cmdline_params." \"".escapeshellcmd($URI)."\"",$results,$return);
$this->headers[] = $result_headers[$currentHeader];
}
- // check if there is a a redirect meta tag
+ // check if there is a redirect meta tag
if(preg_match("'<meta[\s]*http-equiv[^>]*?content[\s]*=[\s]*[\"\']?\d+;[\s]*URL[\s]*=[\s]*([^\"\']*?)[\"\']?>'i",$results,$match))
{