Changeset 8842
- Timestamp:
- 09/08/2008 01:23:43 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/http.php
r8691 r8842 1025 1025 * 1026 1026 * <code> 1027 * $res = array( 'headers' => 1028 * 'response' => array('code', 'message'), 1029 * 'headers' => array() 1030 * ); 1027 * $res = array( 'headers' => array(), 'response' => array('code', 'message') ); 1031 1028 * </code> 1032 1029 * 1033 * All of the headers in $res['headers']['headers'] are with the name as the key 1034 * and the value as the value. So to get the User-Agent, you would do the 1035 * following. 1030 * All of the headers in $res['headers'] are with the name as the key and the 1031 * value as the value. So to get the User-Agent, you would do the following. 1036 1032 * 1037 1033 * <code> 1038 * $user_agent = $res['headers'][' headers']['user-agent'];1034 * $user_agent = $res['headers']['user-agent']; 1039 1035 * </code> 1040 1036 * … … 1044 1040 * functions to abstract out the above convoluted setup. 1045 1041 * 1046 * @since 2.7 1042 * @since 2.7.0 1047 1043 * 1048 1044 * @param string $url Site URL to retrieve.
Note: See TracChangeset
for help on using the changeset viewer.