Hello, gwell!
Ftp can be a better option here.
Another way, if you have access to the remote HTTP server (where CSVs are
hosted) and that server has, say, ASP.NET. Then you can code ASP.NET
web page that will return requested file along with necessary headers.
--
With best regards, Vadym Stetsiak.
Blog:
http://vadmyst.blogspot.com
You wrote on Wed, 19 Sep 2007 01:16:47 -0700:
gOn Sep 18, 10:48 pm, Chris Shepherd <c...@nospam.chsh.cawrote:
>Vadym Stetsiak wrote:
>>Hello, baker_t...@hotmail.com!
>>With generalHTTPaccess there is no way to get these values.
>This is incorrect. Normal webservers will return anHTTPheader
Last-Modified that contains this information.
>To the OP: See "14.29 Last-Modified"
inhttp://www.w3.org/Protocols/rfc2616/rfc2616-sec14.htmlfor
information on what to expect in response.
>Some webservers may not respond properly with Last-Modified, so it's
best to ensure your target uses proper headers before relying on it
(and even then, it's subject to change).
>Chris.
gHi,
gI am tryng to write a windows service that will retrieve csv files
gand other files over HTTP. I only want to get those files that have
gbeen updated recently. Considering the discussion above do you think
gthis is an unreliable way to go? Maybe I should try look at ftp?
gI cant seem to get the last-modified property off the header... here
gis some sample code I am testing:
gAny help would be greatly appreciated... thanks!
g************************************************* *********************
g************************************************* *********************
g*****************
gSystem.Net.WebRequest req = System.Net.HttpWebRequest.Create("http://
guri/TestHTML.htm");
gstring last = req.Headers["If-Modified-Since"];
gIEnumerator cacheEnum = req.Headers.GetEnumerator();
gwhile (cacheEnum.MoveNext())
g{
g string strKey = cacheEnum.Current.ToString();
g}