Grabbing Web Page data
[1/3] from: jrdrp:blueyonder at: 28-Oct-2001 0:36
Hi all,
I'm a newbie to Rebol so please excuse if this is basic.
As a first exercise I am trying to write a little program which collects
some data off a particular web site. (I have looked thru library at scripts
which read web pages but none seem to cover my needs). When accessing the
site normally via a web browser it first presents user with an html form
offering choice of data and format and then (if I select csv option) sends
data to browser window as an uninterrupted list (one big page - no next page
buttons etc). I then have to use browser Select All, Save As etc. to try and
save data to file which does not always work correctly anyway with IE5.
I have 2 basic questions.
Firstly how do I get a Rebol script to send the data and format selection
options? The html source for form looks like form action is a script using
method=post - does this mean I need to use POST?
Secondly how do I grab the data list which is sent back - I think this is
constructed dynamically as I don't see any static url link for the data I
could use in a read http:// etc command.
Any pointers in right direction appreciated.
John
[2/3] from: gchiu:compkarori at: 29-Oct-2001 13:02
> Firstly how do I get a Rebol script to send the data and
> format selection
> options? The html source for form looks like form action
> is a script using
> method=post - does this mean I need to use POST?
You need to use read/custom to post data to the form.
--
Graham Chiu
[3/3] from: arolls:idatam:au at: 29-Oct-2001 14:48
I am pretty sure there is a http-post.r
in the script library, which I have used
successfully before.
You will see there how to get the data
back from a post.
Anton.