Thanks a lot for these explanations!
On Sun, Nov 20, 2016 at 8:20 PM, David Clark
wrote:
> I haven't used groovy-wslite, so any comparisons may be ignorant on my
> part. The main design goals of http-builder-ng are:
>
> 1) Use modern groovy DSL design (https://www.infoq.com/
> presentations/groo
I haven't used groovy-wslite, so any comparisons may be ignorant on my
part. The main design goals of http-builder-ng are:
1) Use modern groovy DSL design
(https://www.infoq.com/presentations/groovy-dsl-2015). The original
HTTPBuilder was nice but depended on propertyMissing/methodMissing magi
Both HTTBuilder and http-builder-ng use the java.net.URI class to store
and manipulate URI information. java.net.URI has the following behavior:
1) If you set the full path using the single string constructor, URI
keeps the %2B in the URI.
2) If you set the path using the constructors that take
OK ... then I guess that the REST service expects "+" to be enoded (%2B). Is there a way to "enforce" the encoding of the plus sign to "%2B" using the URIBuilder for uri.path? If I replace the plus sign and assign the string to uri.path it gets encoded again (%252B) by replacing the "%" with "%25"
I didn't know about NG, David!
These days, I tend to use groovy wslite:
https://github.com/jwagenleitner/groovy-wslite
What are the pros & cons of http-builder-ng and wslite?
On Sun, Nov 20, 2016 at 3:39 PM, David Clark
wrote:
> Plus sign is legal in URI's so they don't need to get encoded to
Plus sign is legal in URI's so they don't need to get encoded to be legal:
http://stackoverflow.com/questions/1547899/which-characters-make-a-url-invalid/1547940#1547940
This is complicated by the fact that they are url encoded when part of
the query string, but that's not what you are doing he
Hi all,
I try to upload files via HTTPBuilder (Groovy Version: 2.4.7 JVM: 1.8.0_40 Vendor: Oracle Corporation OS: Mac OS X). After a couple of test I realized, that filenames containing a plus sign ("+") can't be uploaded. The REST Service responds with HTTP/1.1 400 Bad Request. After some more d