This website recently got a major rebuild; if you're missing something, let Lorna know.

    Tag: streams


  1. Setting Multiple Headers in a PHP Stream Context


    Last 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 …

    Read more