Re: Restlet client and setting the request header date

2010-01-18 Thread Thierry Boileau
Hello Garry, I'm sorry for the delay of my answer. At this moment, we need some to support the EXPECT header (see http://restlet.tigris.org/issues/show_bug.cgi?id=413) which is planned for the 2.0 RC. Some pieces are needed in order to make the Request#onResponse() able to catch such

Re: Restlet client and setting the request header date

2010-01-14 Thread Thierry Boileau
Hi Garry, I'm afraid not. This value is set with a new Date() value just before the header is written... The onContinue was thought to be called before the entity is sent, after the headers were written. I say was, because it has been removed since no clear use case emerged. Best regards,

Re: Restlet client and setting the request header date

2010-01-14 Thread Garry Turkington
Hi again Thierry, One other question re the removal of the onContinue callbacks. In the snapshot code I was trying to use the interim response code to support an Expect/CONTINUE interaction. I wasn't getting the behaviour I expected though on reflection I wasn't convinced the client I had was

Re: Restlet client and setting the request header date

2010-01-14 Thread Garry Turkington
Hi Thierry, Thanks for this response, even if it does make my life more complicated! What I'm building is basically a clone of Amazon's S3. On the server side this has been more or less fine using Restlet -- modulo the issues I've previously raised re the AuthenticationHelper and support for

RE: Restlet client and setting the request header date

2010-01-13 Thread Garry Turkington
Hi, I too hit this problem as I wanted to set a specific value for the Date header. In absence of this ability -- I've seen issue 1001 -- can I get the value of the header client side before the request is sent in any way? I want to set another header based on the date. I thought that

Re: Restlet client and setting the request header date

2010-01-04 Thread Thierry Boileau
Le 29.12.2009 17:52, webp...@tigris.org a écrit : Hello, I've just tried, and it works for me with the internam client connector: using ClientResource ClientResource r = new ClientResource(http://localhost:8182/hello;); r.getRequest().setDate(new Date());

RE: Re: Restlet client and setting the request header date

2010-01-04 Thread webpost
Hi Thierry, Compliments of the season.. The problem isnt that a date is not passed through in the header. Its that it always the current date/time and not the date/time i specify. I'm using the internal connector to do this test. It is part of my security tests to test for request expiry,

Re: Restlet client and setting the request header date

2010-01-04 Thread Thierry Boileau
Hi, Its that it always the current date/time and not the date/time i specify. yes, and I notice the message's date is always set with the current date (see HeaderUtils#addGeneralHeaders). I've entered an issue = http://restlet.tigris.org/issues/show_bug.cgi?id=1001. We will have a look at it

RE: Re: Restlet client and setting the request header date

2010-01-04 Thread webpost
Great... at least i'm not completely nuts :) Will follow the issue. Thank you for confirming the problem. Regards, --KD -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2434579

Re: Restlet client and setting the request header date

2010-01-04 Thread Thierry Boileau
Great... at least i'm not completely nuts :) unfortunately, there is no workaround yet... thanks for your report. Best regards, Thierry Boileau Will follow the issue. Thank you for confirming the problem. Regards, --KD --

RE: Restlet client and setting the request header date

2009-12-31 Thread webpost
Anyone have an answer to this? -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2433923