Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

header http stream context option is unclear about how to use it #3732

Open
nielsdos opened this issue Sep 9, 2024 · 2 comments
Open

header http stream context option is unclear about how to use it #3732

nielsdos opened this issue Sep 9, 2024 · 2 comments

Comments

@nielsdos
Copy link
Member

nielsdos commented Sep 9, 2024

On this page: https://www.php.net/manual/en/context.http.php
We have a list of options, among those is "header", which can either be a string or an array. However, it was not clear what the format of the array should be, until I looked at the user notes which fortunately contained a (small) example.

@cmb69
Copy link
Member

cmb69 commented Sep 9, 2024

I think the array shape is the same as what headers_list() returns.

@nielsdos
Copy link
Member Author

nielsdos commented Sep 9, 2024

Indeed it is, but I had to read the C code to figure that out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants