Hello, Supremelink!
Yes, proxies can impact data received by you.
You can try to specify additional header , Pragma: no-cache, where "pragma"
is header name and "no-cache" is header value.
--
With best regards, Vadym Stetsiak.
Blog:
http://vadmyst.blogspot.com
You wrote on Mon, 01 Oct 2007 01:34:46 -0700:
S> Hi Vadym,
S> The strange thing here is that it works on my local computer.
S> I´m reading the page as a string and then just extracts the rates.
S> Here ´s some code:
S> HttpWebRequest request =
S> (HttpWebRequest)WebRequest.Create(currentUrl);
S> string proxyUrl=ConfigurationManager.AppSettings["ProxyServer"];
S> if (null == proxyUrl || proxyUrl.Length == 0)
S> {
S> log.Info("WebRates::readContent() Not using proxy server");
S> }
S> else
S> {
S> log.Info(String.Format("WebRates::readContent() Using proxy
S> server: {0}", proxyUrl));
S> WebProxy proxy = new WebProxy(proxyUrl, true);
S> request.Proxy=proxy;
S> }
S> response = request.GetResponse();
S> stream = response.GetResponseStream();
S> reader = new StreamReader(stream);
S> content = reader.ReadToEnd();
S> log.Info(String.Format("WebRates::readContent() Content read
S> successfully, number of characters read: {0}", content.Length));
S> return true;
S> I´m extracting exchange rates from content.
S> I think it might be a proxy server between. Does that have any impact
S> on this?
S> Thanks for youre answer!
S> Regards
S> Martin
S>>> Hi all,
S>>> I have a (in my opinion) strange problem. I created an application
S>>> that are extracting exchange rates from a web page and then inserts
S>>> those in a ms sql database.
S>>> When I´m running this application on my local machine, everything
S>>> works fine. All rates are updated. But when I run it on the server,
S>>> it ´s always gets the same result. No update at all. It´s like the
S>>> result are cached or something.
S>>> Does anyone have any idea about this?
S>>> Cheers!
S>>> /Marre
S>>> Hi all,
S>>> I have a (in my opinion) strange problem. I created an application
S>>> that are extracting exchange rates from a web page and then inserts
S>>> those in a ms sql database.
S>>> When I´m running this application on my local machine, everything
S>>> works fine. All rates are updated. But when I run it on the server,
S>>> it ´s always gets the same result. No update at all. It´s like the
S>>> result are cached or something.
S>>> Does anyone have any idea about this?
S>>> Cheers!
S>>> /Marre