reading https web page
[1/2] from: wdurden::sapphirebay::com at: 1-Feb-2003 11:40
Hello all! I have combed the libraries but couldn't find an example such that I could
read an HTTPS url.
Can this be done with rebol core? I have no difficulty grabbing a standard URL but I
apparently do not know enough about the underlying standards to intelligently piece together
the process for an HTTPS page with username and password.
Thank you for your assistance. Additionally, in case it may be of benefit to anyone,
I am including a script below that grabs a realtime quote for symbols in a list every
two minutes and appends it to a text data file. It recovers from a network error by
relaunching itself.
REBOL [
Title: "Downloads REAL TIME QUOTES"
File: %realtimequoteGrabber.r
Date: 21-JAN-2003
Purpose: "Fetch REAL TIME QUOTE"
Category: []
]
comment {
a correct url that gets MSFT data is:
http://custom.marketwatch.com/custom/ameritrade2/html-intchart-rt.asp?symb=MSFT
}
firstpart: http://custom.marketwatch.com/custom/ameritrade2/html-intchart-rt.asp?symb
symbols:[
amat
msft
intc
amzn
sunw
]
theFile: %data/
if error? try [
forever[
if ((now/time > 09:30:00) and (now/time < 16:01:00))[
foreach word symbols[
print join "Getting data for " word
page: read join firstpart word
parse page [thru <NOBR> copy mydata to </NOBR>]
print join now/time [" " mydata]
write/append join theFile [word "2.txt"] join now/time [" " mydata "^/"]
]
wait 00:02:00
]
]
][
wait 00:00:30
do %realtimequoteGrabber.r]
[2/2] from: gchiu:compkarori at: 3-Feb-2003 8:42
On Sat, 1 Feb 2003 11:40:56 -0500
"Wayne Durden" <[wdurden--sapphirebay--com]> wrote:
>Hello all! I have combed the libraries but couldn't find
>an example such that I could read an HTTPS url.
>
>Can this be done with rebol core? I have no difficulty
Hi,
It requires rebol/command.
--
Graham Chiu
http://www.compkarori.com/cerebrus