Excuse me if this is a duplicate, my first post did no appear to go through.

I'm not sure if I am approaching the problem incorrectly, or I have found a 
bug. I am using the 1.2 snapshot from May 5 2009.

I have a restlet client process and an associated restlet based server. The 
resources are all guarded using HTTP_DIGEST authentication. I have setup the 
client to automatically resend any request that gets challenged after adding an 
updated challenge response. This is working great for GET requests. However, 
for POST requests, the Request that is sent with the updated challenge response 
does not contain the original body text.

My processing is:

build POST request with reference and body
add ChallengeResponse based upon current vars
client.handle(request)
if status is unauthorized
   rpl ChallengeResponse based upon new vars
   client.handle(request)

When the final Request is sent, the Request Entity body is not present.

Am I wrong in assuming that I can reuse the original Request and just update 
the ChallengeResponse? Is this approach suppose to work?

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2099335

Reply via email to