users@jersey.java.net

[Jersey] authentication using auth file

From: nssv12 <nssv12_at_gmail.com>
Date: Wed, 18 May 2011 15:17:32 -0700 (PDT)

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

"cred":
  {
    "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!

--
View this message in context: http://jersey.576304.n2.nabble.com/authentication-using-auth-file-tp6379756p6379756.html
Sent from the Jersey mailing list archive at Nabble.com.