unikalna_nazwa napisał(a)
no skoro tak robi gotowa biblioteka i nikt się na nią nie skarży to chyba działa
a skoro działa to jaka może być różnica?
Tak, tak, dlatego połowa lokalnego rzucania paniami do towarzystwa odbywa się w dziale Delphi i dotyczy Indy.
RFC 2616:2.1 napisał(a)
*rule
The character "" preceding an element indicates repetition. The
full form is "<n><m>element" indicating at least <n> and at most
<m> occurrences of element. Default values are 0 and infinity so
that "(element)" allows any number, including zero; "1element"
requires at least one; and "12element" allows one or two.
...
#rule
A construct "#" is defined, similar to "", for defining lists of
elements. The full form is "<n>#<m>element" indicating at least
<n> and at most <m> elements, each separated by one or more commas
(",") and OPTIONAL linear white space (LWS). This makes the usual
form of lists very easy; a rule such as
( *LWS element *( *LWS "," *LWS element ))
can be shown as
1#element
RFC 2616:4.2 napisał(a)
Multiple message-header fields with the same field-name MAY be
present in a message if and only if the entire field-value for that
header field is defined as a comma-separated list [i.e., #(values)].
It MUST be possible to combine the multiple header fields into one
"field-name: field-value" pair, without changing the semantics of the
message, by appending each subsequent field-value to the first, each
separated by a comma.
RFC 2109:4.2.2 napisał(a)
set-cookie = "Set-Cookie:" cookies
cookies = 1#cookie
cookie = NAME "=" VALUE *(";" cookie-av)
...
> Informally, the Set-Cookie response header comprises the token Set-
> Cookie:, followed by a comma-separated list of one or more cookies.
> Each cookie begins with a NAME=VALUE pair, followed by zero or more
> semi-colon-separated attribute-value pairs.
> ##### RFC 2109:4.3.4 napisał(a)
> <code> cookie = "Cookie:" cookie-version
1*((";" | ",") cookie-value)
...
Note: For backward compatibility, the separator in the Cookie header
is semi-colon (;) everywhere. A server should also accept comma (,)
as the separator between cookie-values for future compatibility.
Chyba wszystko jasne?