Re: Help with If-Modified-Since and C#

2009-02-09 Thread Gustavo Melo
I try this too: HttpWebRequest http = (HttpWebRequest)WebRequest.Create(url); http.IfModifiedSince = DateTime.Now; This code will give to me only replies that was new on 24 hours behind? In this case too, return all (all days) replies that i had. On Mon, Feb 9, 2009 at 2:57 PM, Gustavo Melo

Help with If-Modified-Since and C#

2009-02-09 Thread Gustavo Melo
Hello Guys,Som1 had some code snippets using If-Modified-Since in C#? Whatever, header or parameter... I want to get only replies TODAY starting of my parameter with some HOUR Example: I had 10 replies today (1 am - 10 am) and i want only (5 am - 10 am) I'm trying this: string url =

Re: Help with If-Modified-Since and C#

2009-02-09 Thread rhysmeister
Hi Gustavo, The If-Modified-Since is a http header not a url parameter. You want to user the 'since' parameter... string url = http://twitter.com/statuses/replies.xml?since=; + HttpUtility.UrlEncode(True, 09 Feb 2009 14:00:00 GMT) Also your http formatted date is wrong. Regards, Rhys