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:
SHi Vadym,
SThe strange thing here is that it works on my local computer.
SI´m reading the page as a string and then just extracts the rates.
SHere ´s some code:
SHttpWebRequest request =
S(HttpWebRequest)WebRequest.Create(currentUrl);
Sstring proxyUrl=ConfigurationManager.AppSettings["ProxyServer"];
Sif (null == proxyUrl || proxyUrl.Length == 0)
S{
Slog.Info("WebRates::readContent() Not using proxy server");
S}
Selse
S{
Slog.Info(String.Format("WebRates::readContent() Using proxy
Sserver: {0}", proxyUrl));
SWebProxy proxy = new WebProxy(proxyUrl, true);
Srequest.Proxy=proxy;
S}
Sresponse = request.GetResponse();
Sstream = response.GetResponseStream();
Sreader = new StreamReader(stream);
Scontent = reader.ReadToEnd();
Slog.Info(String.Format("WebRates::readContent() Content read
Ssuccessfully, number of characters read: {0}", content.Length));
Sreturn true;
SI´m extracting exchange rates from content.
SI think it might be a proxy server between. Does that have any impact
Son this?
SThanks for youre answer!
SRegards
SMartin
SOn Sep 11, 12:57 pm, "Vadym Stetsiak" <vadm...@gmail.comwrote:
>Hello,Supremelink!
>Are you sure that content from the web page gets downloaded by your
application?
How do you retrieve web page content? Can you throw in some code?
>Are there any proxies between your local computer and web server. Or
between work server and web server.?
>--
With best regards, Vadym Stetsiak.
Blog:http://vadmyst.blogspot.com
>You wrote on Tue, 11 Sep 2007 03:19:45 -0700:
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
SOn Sep 11, 12:57 pm, "Vadym Stetsiak" <vadm...@gmail.comwrote:
>Hello,Supremelink!
>Are you sure that content from the web page gets downloaded by your
application?
How do you retrieve web page content? Can you throw in some code?
>Are there any proxies between your local computer and web server. Or
between work server and web server.?
>--
With best regards, Vadym Stetsiak.
Blog:http://vadmyst.blogspot.com
>You wrote on Tue, 11 Sep 2007 03:19:45 -0700:
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