[
https://issues.apache.org/jira/browse/HTTPCORE-522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16448174#comment-16448174
]
Julian Reschke commented on HTTPCORE-522:
-----------------------------------------
FWIW, RFC 2616 is entirely irrelevant, but having said that, the definition is
the same in RFC 7230.
I'm not sure what you're exactly looking for, maybe the list rule ("#rule")?
Note that it doesn't put any constraints at all on the syntax of each list
element.
Finally, if you're looking for an example *in* RFC 2616 of a header field like
that, see
<https://greenbytes.de/tech/webdav/rfc2616.html#header.if-none-match>, where
"entity-tag" can contain a ",".
> Comma in url breaks BasicHeaderValueParser.parseElements
> --------------------------------------------------------
>
> Key: HTTPCORE-522
> URL: https://issues.apache.org/jira/browse/HTTPCORE-522
> Project: HttpComponents HttpCore
> Issue Type: Bug
> Components: HttpCore
> Affects Versions: 4.4.9
> Reporter: Liam Sharp
> Priority: Major
>
> Passing a link header containing a comma to
> BasicHeaderValueParser.parseElements results in two HeaderElement's rather
> than one, eg:
> String linkHeader = "<http://www.example.com/foo,bar.html>;
> rel=\"canonical\"";
> final HeaderElement[] parsedHeaders =
> BasicHeaderValueParser.parseElements(linkHeader, null);
> for (HeaderElement headerElement : parsedHeaders)
> {
> System.out.println(headerElement);
> }
> Produces:
> <http://www.example.com/foo
> bar.html>; rel=canonical
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]