users@jersey.java.net

[Jersey] Re: POST using jersey client

From: Gary Moore <gary.moore_at_gmail.com>
Date: Fri, 20 May 2011 20:10:23 -0400

Hello,

Are you using Jersey Client Java code or are you using curl? If you
are using Java code, can you include that? If you are using curl, is
that the entire curl statement you are running?

Gary

On Wed, May 18, 2011 at 5:35 PM, NS <nssv12_at_gmail.com> wrote:
> Hi,
>
> I am trying to use Jersey client for the first time. I have browsed through
> several tutorials, but couldn't get the following POST request working :
>
> I am trying to execute the following POST request through Jersey Client -
>
> curl -b cookies -c cookies -X POST --data-binary @cred 'url'
>
> the cred file contains username and password info in the following format
>
> "auth":
>   {
>     "username" : "user",
>     "password" : "passwd"
>   }
> }
>
> I tried to use  MultivaluedMap to set username and password, but it doesn't
> work
>
> Could you point me to an example to implement my request.
>
> Thanks a bunch!
>
>
>



-- 
Gary Moore
http://www.gmoore.net