brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From neykov <...@git.apache.org>
Subject [GitHub] brooklyn-server issue #551: BROOKLYN-421: Adds DSL for $brooklyn:urlEncode(....
Date Tue, 07 Feb 2017 22:10:07 GMT
Github user neykov commented on the issue:

    https://github.com/apache/brooklyn-server/pull/551
  
    `URLEncoder.encode` is used for encoding form data for submission in the request body
with a `x-www-form-urlencoded` `Content-Type`. That's different from URL encoding.
    Here's a relevant [SO link](http://stackoverflow.com/questions/444112/how-do-i-encode-uri-parameter-values).
See also the last downvoted answer.
    We should deprecate `Urls.encode` and use a proper URL builder instead. [This](https://github.com/mikaelhg/urlbuilder)
one I like for being small with no dependencies.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message