Java Mailing List Archive

http://www.gg3721.com/

Home » user.groovy »

[groovy-user] HTTPBuilder/RestClient... very painful issue

Roger Studner

2010-03-14

Replies: Find Java Web Hosting

Author LoginPost Reply
def client = new RESTClient('http://localhost:8000/JsonTest/alert/')

   def response = client(path: "ack",
        body: ["anything":"whatever"],
        requestContentType: 'application/json',
        contentType: 'text/plain')

this works.

pain:

def client = new RESTClient('http://localhost:8000/JsonTest/alert/')

   def response = client(path: "ack?ANYTHINGHERE_CAUSES_FAILURE=UGGH",
        body: ["anything":"whatever"],
        requestContentType: 'application/json',
        contentType: 'text/plain')

I get a "not found".. if I ever try to put a request param, on the path of a post.

Anyone :) Bueller?

Thanks,
Roger


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


©2008 gg3721.com - Jax Systems, LLC, U.S.A.