-
Setting Multiple Headers in a PHP Stream Context
07 May 2013
Read moreLast week I tried to create a PHP stream context which set multiple headers; an Authorization header and a Content-Type header. All the examples I could find showed headers built up as a string with newlines added manually, which seemed pretty clunky and not-streams-like to me.
In fact, you've been …