edk wrote: ↑Fri Mar 10, 2017 10:29 am
Hi RPC.
Try this: C:\hmg.3.4.3\HARBOUR\contrib\hbtip\tests\loadhtml.prg
But, if you need to read pages from https, you must include SSL suport
Code: Select all
#require "hbssl"
REQUEST __HBEXTERN__HBSSL__
IF !tip_SSL()
MsgStop("Required SSL")
Return
ENDIF
oHttp := TIPClientHTTP():new( "https://www.google.com/search", .F. )
You need also in hbc:
Code: Select all
libs=hbssl
libs=libeay32
libs=ssleay32
Libs=hbtip
Include in hbp:
And most important: DLLs
ssl_dll.7z
Edward.
Hi Edwards
Many thanks for the code and description.
I tried to compile, thro IDE, loadhtml.prg but got error BASE/1004 No Exported method: AS
Unfortunately I am quite dumb in understanding all this.
I have to download data from following site
https://www.nseindia.com/products/conte ... x_data.htm
Time period is 10 march 2017 to 10 march 2017 and click Get Data button. Then you will get follo info
Date : 10-Mar-2017 | Open : 8953.70 | High : 8975.70 | Low : 8903.95 | Close : 8934.55 | Shares Traded : 157419999 | Turnover(Rs Cr) : 7385.28
There is also a hyperlink - Download file in CSV format - towards right side corner of the information downloaded. Clicking on this downloads the above information in a CSV file.
It is this information which I want to download. I notice it is a https page. Could you please send a program to download the info in a CSV/text file. I would be very grateful.
Thanks
RPC