httpbuilder Questions

3

Solved

When using groovy's http-builder with basic authentication the default behavior is to send an unauthenticated request first and resend the request with credentials after receiving a 401 in the firs...
Kliman asked 5/7, 2011 at 20:7

3

The REST Client of HTTP Builder returns a HttpResponseDecorator. How can I get the raw response out of it (for logging purposes)? EDIT (some code might be handy): withRest(uri: domainName) { de...
Tabescent asked 19/4, 2013 at 1:47

2

Solved

I am trying to understand the Simplified GET of HTTP Builder. I succeeded with simple GET request similar to a REST GET request. def client = new HTTPBuilder('http://pokeapi.co') def resp = client...
Volitive asked 2/12, 2014 at 6:33

4

Solved

I'm trying to set a connection timeout with Groovy HTTPBuilder and for the life of me can't find a way. Using plain ol' URL it's easy: def client = new URL("https://search.yahoo.com/search?q=foob...
Parvati asked 25/2, 2016 at 19:5

7

I heard that Groovy has a built-in REST/HTTP client. The only library I can find is HttpBuilder, is this it? Basically I'm looking for a way to do HTTP GETs from inside Groovy code without having ...
Duquette asked 5/9, 2014 at 19:14

2

I want to hit an xml request to a url while running the code in my local system it is working well i have created a war file and deployed the same in server,but while running in server getting an e...

1

Solved

Java 8 | Groovy Language | IDE: IntelliJ IDEA | Gradle 3 I have problem with SSL issue Code: import groovyx.net.http.RESTClient def client = new RESTClient() client.ignoreSSLIssues() def resu...
Logrolling asked 10/5, 2017 at 7:34

2

The following code doesn't authenticate the user (no authentication failure happens, but the call fails due to lack of permissions): def remote = new HTTPBuilder("http://example.com") remote.auth....
Milkandwater asked 18/10, 2013 at 18:30

2

Solved

I'm trying to install HTTPBuilder like this: @Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.7.2') However, I'm getting this error: java.lang.Runtime...
Zoller asked 19/7, 2015 at 6:51

1

Apologies for the newbie question, but how do you install HTTPBuilder for Groovy? I've added the http-builder-0.7.jar, http-builder-0.7-source.jar, and http-builder-0.7-javadoc.jar to GROOVY_HOME/...
Anchoress asked 5/3, 2015 at 21:43

3

I am trying to use the Groovy HTTPBuilder to write an integration test that will verify a correct error message is returned in the body along with an HTTP 409 status message. However, I can't figur...
Bywaters asked 13/11, 2013 at 23:24

1

Solved

Is HTTPBuilder in Grails thread safe? If HTTPBuilder is wired to a Grails service class, will it be safe to use? Or should it be instantiated on every invocation? There doesn't seem to be any con...
Topmast asked 2/1, 2015 at 3:52

3

Solved

I don't understand maven or grape, and I'm an idiot so give me the step by step if your answer is "go grap X-dependency manager and then rtfm and you're set." Where do i find and dump files to make...
Impostume asked 1/7, 2011 at 20:1

2

Solved

Per the docs, you can go through a rather clunky process of export a cert from a browser manually and getting it recognized locally. Is there anything similar to curl's --insecure switch to make th...
Pacificia asked 24/7, 2012 at 19:32

5

Solved

I've found this doc on how to post JSON data using HttpBuilder. I'm new to this, but it is very straightforward example and easy to follow. Here is the code, assuming I had imported all required de...
Peugia asked 26/7, 2011 at 14:35

3

Solved

I'm trying to make a simple HTTP POST request, and I have no idea why the following is failing. I tried following the examples here, and I don't see where I'm going wrong. Exception java.lang.Nul...
Notate asked 12/5, 2010 at 23:51

2

Solved

I need to send a POST request to a web server and be able to read the response sent by said server. I tried using the HTTPBuilder lib with this code : def http = new HTTPBuilder('http://myServer/'...
Spooner asked 6/1, 2012 at 16:5

1

Solved

I am trying to figure out how to write my Test cases for a service I am going to write. The service will use HTTPBuilder to request a response from some URL. The HTTPBuilder request only needs to ...
Reinareinald asked 1/2, 2012 at 18:20

1

Solved

Latest version of the REST Client plugin for grails: withHttp(uri: "http://foo/bar") { def bodyContent = [ apiKey: "somekey", identifier: identity.identity, activity: ac as JSON ] def json =...
Ratal asked 16/3, 2011 at 18:58
1

© 2022 - 2024 — McMap. All rights reserved.