Changeset 8600 for trunk/wp-includes/http.php
- Timestamp:
- 08/09/2008 05:36:14 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/http.php
r8588 r8600 226 226 /** 227 227 * Uses the POST HTTP method. 228 * 228 * 229 229 * Used for sending data that is expected to be in the body. 230 230 * … … 245 245 246 246 /** 247 * Uses the GET HTTP method. 247 * Uses the GET HTTP method. 248 248 * 249 249 * Used for sending data that is expected to be in the body. … … 265 265 266 266 /** 267 * Uses the HEAD HTTP method. 267 * Uses the HEAD HTTP method. 268 268 * 269 269 * Used for sending data that is expected to be in the body. … … 345 345 * 346 346 * @param string|array $headers 347 * @return array Processed string headers 347 * @return array Processed string headers 348 348 */ 349 349 function processHeaders($headers) { … … 358 358 continue; 359 359 360 360 361 361 if ( false === strpos($tempheader, ':') ) { 362 362 list( , $iResponseCode, $strResponseMsg) = explode(' ', $tempheader, 3); … … 661 661 $url = str_replace($arrURL['scheme'], 'http', $url); 662 662 663 $arrContext = array('http' => 663 $arrContext = array('http' => 664 664 array( 665 665 'method' => strtoupper($r['method']), … … 896 896 if ( !ini_get('safe_mode') && !ini_get('open_basedir') ) 897 897 curl_setopt( $handle, CURLOPT_FOLLOWLOCATION, true ); 898 898 899 899 if( ! is_null($headers) ) 900 900 curl_setopt( $handle, CURLOPT_HTTPHEADER, $headers );
Note: See TracChangeset
for help on using the changeset viewer.