How to set and verify a custom header using stream_context_get_options()?
stream_context_get_options() is a very useful function that can help us get options for the current stream context. If you need to send custom HTTP headers through stream contexts (for example, using file_get_contents(), fopen(), etc.), you can use this function to check and verify that these headers are set correctly.
stream_context_get_options