The headers are encrypted so basically ..... you can't.
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
That code would get the RESPONSE headers from a remote site. The TS wants to get the REQUEST headers on the SAME server.
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
The status codes OP mentioned are response codes. The get_headers() function OP mentioned returns response headers. I'm pretty sure he's after response but what do I know.
« Reply to PHP - how to get headers of an HTTPS page?