You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2014/12/02 11:56:12 UTC
[jira] [Resolved] (CXF-5168) Impossible to pass '+' character as is
as part of HTTP query with WebClient
[ https://issues.apache.org/jira/browse/CXF-5168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Beryozkin resolved CXF-5168.
-----------------------------------
Resolution: Duplicate
> Impossible to pass '+' character as is as part of HTTP query with WebClient
> ----------------------------------------------------------------------------
>
> Key: CXF-5168
> URL: https://issues.apache.org/jira/browse/CXF-5168
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Reporter: Sergey Beryozkin
> Assignee: Sergey Beryozkin
>
> URL Encoder encodes "\+" as "%2B" however this may affect the servers expecting '\+' as is, in fact '+' is not a query reserved character.
> What further complicates is that URL encoder will encode ' ' as '\+'.
> The path encoding process manages it correctly, it will retain '\+' and will encode ' ' as '%20'.
> For query: we need to keep '\+' as is and if users want it as '%2B' they they can directly use '%2B'. The same goes for ' ' - encoding it to '\+' has not been a problem so far but if they need they can always use '%20'
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)