[REBOL] Re: Help with HTTP protocol
From: greg:brondo:algx at: 4-Mar-2004 13:37
Now this is getting weird as I implemented my first agent for this in PHP as
well (queue Twilight Zone music here)....
Curl is a command line tool and library for getting data from network systems
(HTTP, TELNET, FTP, GOPHER, etc). http://curl.haxx.se/ it's quite handy to
have for quick scripts although Rebol makes it somewhat unneeded for me
now ;-)
Anyway, here's the code (just a test case):
REBOL []
data: read http://weather.yahoo.com/search/weather2?p=75056
results: []
parse/all data [
thru {TEXT FORECAST-->}
any [
thru <b> copy field to </b> (append results field append results
newline)
thru </b> copy field to <p> (append results field append results
newline)
]
to {<!--ENDTEXT}
]
print results
Hope that helps!
On Thursday 04 March 2004 11:27 am, Carlos Lorenz wrote: