Hi,

I need to send an HTTP POST containing an HTML form-style set of key-value pairs in the body ...

... I'm embarrassed to say, I can't see how to do this! Can someone point me in the right direction?

Thanks,

Chris

p.s. The code I have so far looks like this:

// method signature fulfils app interface, so cannot be changed
public void post(Map<String, String> postData) throws Exception
{
    Request request = new Request(Method.POST, "http://endpoint/";);
    // need to add map to request? as entity?
    Response response = new Client(Protocol.HTTP).handle(request);
}

Reply via email to