in stream adapter, send proper cookie header