Skip to content

Instantly share code, notes, and snippets.

@Burgov
Created April 26, 2012 19:09
Show Gist options
  • Save Burgov/2502064 to your computer and use it in GitHub Desktop.
Save Burgov/2502064 to your computer and use it in GitHub Desktop.
file_get_contents headers
array(45) {
[0]=>
string(18) "HTTP/1.1 302 Found"
[1]=>
string(35) "Date: Thu, 26 Apr 2012 19:08:58 GMT"
[2]=>
string(30) "Server: Apache/2.2.20 (Ubuntu)"
[3]=>
string(35) "X-Powered-By: PHP/5.3.6-13ubuntu3.6"
[4]=>
string(31) "Location: server.php?redirect=7"
[5]=>
string(21) "Vary: Accept-Encoding"
[6]=>
string(17) "Content-Length: 0"
[7]=>
string(17) "Connection: close"
[8]=>
string(23) "Content-Type: text/html"
[9]=>
string(18) "HTTP/1.1 302 Found"
[10]=>
string(35) "Date: Thu, 26 Apr 2012 19:08:58 GMT"
[11]=>
string(30) "Server: Apache/2.2.20 (Ubuntu)"
[12]=>
string(35) "X-Powered-By: PHP/5.3.6-13ubuntu3.6"
[13]=>
string(31) "Location: server.php?redirect=6"
[14]=>
string(21) "Vary: Accept-Encoding"
[15]=>
string(17) "Content-Length: 0"
[16]=>
string(17) "Connection: close"
[17]=>
string(23) "Content-Type: text/html"
[18]=>
string(18) "HTTP/1.1 302 Found"
[19]=>
string(35) "Date: Thu, 26 Apr 2012 19:08:58 GMT"
[20]=>
string(30) "Server: Apache/2.2.20 (Ubuntu)"
[21]=>
string(35) "X-Powered-By: PHP/5.3.6-13ubuntu3.6"
[22]=>
string(31) "Location: server.php?redirect=5"
[23]=>
string(21) "Vary: Accept-Encoding"
[24]=>
string(17) "Content-Length: 0"
[25]=>
string(17) "Connection: close"
[26]=>
string(23) "Content-Type: text/html"
[27]=>
string(18) "HTTP/1.1 302 Found"
[28]=>
string(35) "Date: Thu, 26 Apr 2012 19:08:58 GMT"
[29]=>
string(30) "Server: Apache/2.2.20 (Ubuntu)"
[30]=>
string(35) "X-Powered-By: PHP/5.3.6-13ubuntu3.6"
[31]=>
string(31) "Location: server.php?redirect=4"
[32]=>
string(21) "Vary: Accept-Encoding"
[33]=>
string(17) "Content-Length: 0"
[34]=>
string(17) "Connection: close"
[35]=>
string(23) "Content-Type: text/html"
[36]=>
string(18) "HTTP/1.1 302 Found"
[37]=>
string(35) "Date: Thu, 26 Apr 2012 19:08:58 GMT"
[38]=>
string(30) "Server: Apache/2.2.20 (Ubuntu)"
[39]=>
string(35) "X-Powered-By: PHP/5.3.6-13ubuntu3.6"
[40]=>
string(31) "Location: server.php?redirect=3"
[41]=>
string(21) "Vary: Accept-Encoding"
[42]=>
string(17) "Content-Length: 0"
[43]=>
string(17) "Connection: close"
[44]=>
string(23) "Content-Type: text/html"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment