Search found 30 matches

by edk
Tue Mar 21, 2017 1:34 pm
Forum: HMG Samples
Topic: Download file from WWW
Replies: 49
Views: 3425

Re: Download file from WWW

Hi Edward! Maybe you know, how to detect proxy server? Your samples and help are very good :) This may be helpful: https://github.com/vszakats/harbour-core/blob/master/contrib/hbwin/win_proxy.prg https://github.com/vszakats/harbour-core/blob/master/contrib/hbwin/win_proxyc.c https://github.com/vsza...
by edk
Sun Mar 19, 2017 10:15 am
Forum: HMG Samples
Topic: Download file from WWW
Replies: 49
Views: 3425

Re: Download file from WWW

I'm sorry Marek, but I did not need to use a proxy and do not have a ready solution for you. So I quickly found on the description in C. http://stackoverflow.com/questions/202547/how-do-i-find-out-the-browsers-proxy-settings and from msdn https://msdn.microsoft.com/pl-pl/library/windows/desktop/aa38...
by edk
Fri Mar 17, 2017 9:57 pm
Forum: HMG Samples
Topic: Download file from WWW
Replies: 49
Views: 3425

Re: Download file from WWW

Queries depend on how the system is built on the side of the host. If the publisher does not provide documentation for general queries, please consult the source code html and see how they are called queries from the website. Maybe it will be a little helpful: https://perishablepress.com/how-to-writ...
by edk
Fri Mar 17, 2017 10:49 am
Forum: General Discussions
Topic: Block Check Character (BCC)
Replies: 22
Views: 511

Re: Block Check Character (BCC)

Hi Roberto, I found a BCC explanation on the Polish forum: BCC= The low part of the binary sum of all bytes. That would explain why only a part of the BCC sum agrees with the according manual. Result: '0554' The Hight part is '05' The Low part is: '54' Simply replacing the first two digits of the re...
by edk
Fri Mar 17, 2017 7:59 am
Forum: HMG Samples
Topic: Download file from WWW
Replies: 49
Views: 3425

Re: Download file from WWW

serge_girard wrote:
Fri Mar 17, 2017 7:54 am
Hi,

Problem of course is when they change layout of pages !

Serge
+1
The solution may be webApi, if it exists.
by edk
Fri Mar 17, 2017 7:59 am
Forum: HMG Samples
Topic: Download file from WWW
Replies: 49
Views: 3425

Re: Download file from WWW

RPC wrote:
Thu Mar 16, 2017 8:38 pm
(...)
Could you tell me what should I read on the internet, perhaps a quick tutorial on "querying", which would teach me. :?:
If it is handy, could you please point out to some links. :idea:

I always use the help of Uncle Google ;)
by edk
Thu Mar 16, 2017 6:41 pm
Forum: General Discussions
Topic: Block Check Character (BCC)
Replies: 22
Views: 511

Re: Block Check Character (BCC)

Could it be nibble? (...) The description of BCC in the manual (translated from original Spanish) is as follows: BCC = Four hexadecimales. Binary sum of all prior bytes (...) According Manual: '0000' It seems to me that you wrong read on the description of the calculation of BCC. The sum of the byte...
by edk
Wed Mar 15, 2017 8:18 pm
Forum: HMG Samples
Topic: Download file from WWW
Replies: 49
Views: 3425

Re: Download file from WWW

The queries depends of host. Different query is for Google and others for Yahoo, and others for each host. You need to analyze the code html web pages for which you want to query. Or look for information from the webmaster to send queries. If you examine the code html https://www.nseindia.com/produc...
by edk
Wed Mar 15, 2017 2:51 pm
Forum: HMG Samples
Topic: Download file from WWW
Replies: 49
Views: 3425

Re: Download file from WWW

RPC Change in the code line: strfile(recv,'Method1.html') to: csv:=MakeCSV(recv) strfile(csv,STRTRAN(iType,' ','_')+qDate(fromDate)+"-"+qDate(toDate)+".csv") and add this function: Function makeCSV( cString ) Local StartTag:="<div id='csvContentDiv' style='display:none;'>" Local StopTag:="</div>" Lo...
by edk
Tue Mar 14, 2017 7:55 pm
Forum: HMG Samples
Topic: Download file from WWW
Replies: 49
Views: 3425

Re: Download file from WWW

mol wrote:
Tue Mar 14, 2017 7:01 pm
You should parse downloaded html code to find <table> <row> <cell> tags.
+1

RPC, you don't need read a html file.
All datas are at recv variable.
Just find <div id='csvContentDiv' style='display:none;'> and cut string to </div>
Char : is record's separator (new line in csv format)