I'm working on an integration where I need to access and provide the HTTP headers (just the names, not the values) in the order they were sent to the script. So I would build a string such as:
Host,Connection,Cookie,Cache-Control
Now I know I can look at those individually, such as s.http_host, s.http_cache_control, etc. But in order to do that, I already have to know which ones were sent (or at least a superset of all that could be sent). And I wouldn't have them in the same order as they were presented to the script.
Is there a way I can just access the raw headers themselves?
Thanks,
Susan
Host,Connection,Cookie,Cache-Control
Now I know I can look at those individually, such as s.http_host, s.http_cache_control, etc. But in order to do that, I already have to know which ones were sent (or at least a superset of all that could be sent). And I wouldn't have them in the same order as they were presented to the script.
Is there a way I can just access the raw headers themselves?
Thanks,
Susan
Comment