Thanks again!

Bruce

Sent from my iPad

> On Aug 2, 2014, at 6:26 AM, Andrea Del Bene <an.delb...@gmail.com> wrote:
> 
> You can use method AbstractRestResource.setResponseStatusCode
>> Thanks Andrea. I'm working this out.  Now I have one more question:
>> 
>> How can I return an Http 401 Status Code of Unauthorized if the password is
>> incorrect? I know I can return values, such as the PersonPojo in the
>> example, and I can return error messages
>> from the from a registered validator, but I think it is standard to return
>> 401 on authentication failure. Can I return a Status Code?
>> 
>> Bruce
>> 
>> -----Original Message-----
>> From: Andrea Del Bene [mailto:an.delb...@gmail.com]
>> Sent: Friday, August 01, 2014 12:26 PM
>> To: users@wicket.apache.org
>> Subject: Re: Wicketstuff restannotations example throws
>> IllegalStateException: STREAMED with https
>> 
>> I would pass them as request parameters...
>>> Andrea,
>>> 
>>> I have the SSL working fine when I call it from a Java program using
>>> HttpsURLConnection. So it was something with "curl."
>>> 
>>> I wonder if you could suggest how I could pass a username and password
>>> along with the json string and authenticate the request.
>>> 
>>> Thanks,
>>> 
>>> Bruce
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to