Hi there,

The problem is that some representations are streamed and once sent they
can't be sent again because the Restlet connector has no way to recreate it.
Some representations like DomRepresentation and StringRepresentation contain
all the content in memory and can be resent though.

If you really need such a feature, you might have to cache the
representation before sending it, in memory or on disk.

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com



-----Message d'origine-----
De : [email protected] [mailto:[email protected]] 
Envoyé : jeudi 7 mai 2009 21:18
À : [email protected]
Objet : Reissuing Post after challenge losses entity body

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=20993
35

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

Reply via email to