I wanted to check the status code that comes back as response from the HttpWebResponse . So I used the following code -
res = (HttpWebRespons e) req.GetResponse ();
It's working great, but if I wanted to let the server know a date when I visited the server last using "IfModifiedSinc e" variable of the "req" object, the above piece of code throws an exception if the content was not modified since the...
User Profile
Collapse
-
HttpWebResponse - Status Code Check Issue
-
But in that case if the time is actually a GMT time and I am parsing it in EST, I will miss interpret the time - isn't that correct?... -
this.Close will close the form that you are working with.
If you have already created a thread, I presume that you have given it a variable name -
System.Threadin g.Thread t1 = new System.Threadin g.Thread(new System.Threadin g.ThreadStart(s ome_function));
t1.Start();// thread started
t1.Join();// thread is waiting to be finished
Now, if you really want to kill it -
t1.Abort(...Leave a comment:
-
DateTime Issue
Take a look at the blog - http://feeds.gawker.co m/gizmodo/full
Look under the <pubDate>. Most of them appears as -
<pubDate>Wed, 17 Jan 2007 09:18:15 EST</pubDate>
When parsing this date using - (in .net 1.1)
DateTime dt = DateTime.Parse( "Wed, 17 Jan 2007 09:18:15 EST");
It fails. However if I put in "GMT" instead of "EST"...
No activity results to display
Show More
Leave a comment: