Extract request headers from $_SERVER