[DOC-CVS] [doc-en] master: HTTP context header (fix #1053)

[email protected] (Jakub Vrana)
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Jakub Vrana (vrana)
Date: 2025-04-19T20:57:08+02:00

Commit: https://github.com/php/doc-en/commit/e7b81f2c31e6b824748eeb8106b8bd4dec386781
Raw diff: https://github.com/php/doc-en/commit/e7b81f2c31e6b824748eeb8106b8bd4dec386781.diff

HTTP context header (fix #1053)

Changed paths:
  M  language/context/http.xml


Diff:

diff --git a/language/context/http.xml b/language/context/http.xml
index f9b6707c0b01..2023f378b7f0 100644
--- a/language/context/http.xml
+++ b/language/context/http.xml
@@ -49,6 +49,13 @@
        Thus it is not recommended to set a <literal>Host:</literal> header,
        if <parameter>follow_location</parameter> is enabled.
       </para>
+      <para>
+       String value should be <literal>Key: value</literal> pairs delimited by
+       <literal>\r\n</literal>, e.g.
+       <literal>"Content-Type: application/json\r\nConnection: close"</literal>.
+       Array value should be a list of <literal>Key: value</literal> pairs, e.g.
+       <literal>["Content-Type: application/json", "Connection: close"]</literal>.
+      </para>
      </listitem>
     </varlistentry>
     <varlistentry xml:id="context.http.user-agent">
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.