Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Fail to retrieve CSV from a URL correctly ...

0 views
Skip to first unread message

MC

unread,
Aug 13, 2008, 12:59:41 AM8/13/08
to
I am retrieving CSV data from a given URL, which will return a chaning
value. I have try many method to do that, all succeed in getting
something back ... first, I am using TEmbeddedWB which support non-
blocking get menthod, I try

1) WB.Navigate(myURL) and capture the innerhtml in OnDocumentComplete,
for the first time calling WB.Navigate(myURL), it return the correct
data from myURL. But later on, all data are the same as the first one
(I am sure the server @ myURL has changed the content). So I try

2) var _flags :OleVariant;
_flags := (navNoHistory + navNoReadFromCache ) ;
WB.Navigate(myURL, _flags);

The same problem!!!!

3) var _flags :OleVariant;
_link :OLEVariant;
_flags := (navNoHistory + navNoReadFromCache ) ;
_link := myURL;
WB.Navigate(_link, _flags);

No help :)))

I have no idea what's wrong with the codes above, anyway, then I try
to use TIdHTTP

_http := TIdHTTP.Create(nil);
_http.Get(myURL);

And this will return the correct :) but TIdHTTP.Get(myURL) is a
blocking method, I wonder if there is any non-blocking component to
achieve what I need? And could anybody tell me what's wrong with
Navigate I used before?

Thanks

0 new messages