wink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shinoj <>
Subject Default value for If-Modified-Since Header parameter.
Date Fri, 05 Aug 2011 10:43:55 GMT

I am using RestClient plug-in in FireFox to test my RESTful webservice
application. I am facing below problem while using "If-Modified-Since"
request header. 

"Eventhogh I am not giving the If-Modified-Since header parameter explicitly
with the request I am getting some default value for this parameter and I am
getting '304 Not-Modified' response from the server instead of '200 OK' "

I analysed more and found that the default value  coming as the value of
If-Modified-Since is equal to the Last-Modified Response heder.

See below the way I am retrieving the If-Modified-Since value from the
MessageContext object.

MessageContext context 

HttpHeaders headers = context.getHttpHeaders();


List<String> ifModifiedSince =
if (ifModifiedSince != null && ifModifiedSince.size() > 0) {

	/* value of ifModifiedSince.get(0) : Sun, 05 Dec 2010 02:22:37 GMT    ---->
Same as Last-Modified */



Please help me to resolve this problem.


View this message in context:
Sent from the Apache Wink Users mailing list archive at

View raw message