[REBOL] Re: POST examples ...
From: gjones05:mail:orion at: 1-Jun-2001 16:55
From: "Petr Krenzelok"
> However, - nowadays more modern solutions exist, one of them being
> based solutions. As our company is moving to beast called SAP R3,
> new mainframe. Part of it contains installed Unix, and one of the
> is Rexx based ftp server from IBM (or so I think :-)
> Our admins prepared one solution for us - they told us to use IE, or
> Netscpape, so http interface. I asked them for simpler solution using
> protocol, but they don't want to prepare special solution for us. But
> need a little bit of automatition ...
> So I tried to wrap the solution usign Rebol, but I've got only some 30
> to play with it, as I had to leave my office. I got thru
> it is simple http://user:[pass--server].....
> Looking at html source however, I was not able to prepare POST part of
> request, so I have few questions here:
> 1) are there any examples available using POST method?
Look for "Posting CGI Data"
> 2) what should I concentrate one? There seem to be plenty of various
Search for the <form ***> tags. There may be more than one. Find the
one that seems relevant to your query. The find the bracketing </form>.
If there are lots of fields, I usually edit out all the non-tag stuff,
except just enough to know what the input field is about. With all the
inputs, etc, between the <form />. You've got your base information.
fields, update other fields, etc. Keep an eye out for hidden fields
(that are not visible in the browser) as they frequently contain
> 3) how do I recognize which parameters should be enclosed in "", and
It is all "stringified" ultimately and url encoded. If there are spaces
in data, then enclose.
> 4) is there any way of how to split download into several parts? Some
> files are more than 40 MB in size. I think that 'read reads whole file
> memory. I remember some discussion using read/custom [start 0 end 100]
> something like that but I am not sure if it is oficially supported.
> use 'open instead of 'read? And in case I use 'open http:// ... - are
> necessary http info send to server?
under direct port access
> Why do I want to use rebol for that?:
> 1) I want to use rebol in real life ...
> 2) The more tools I produce in rebol and show my friends it can pretty
> help us to make some of our processes more automatic, the more chance
> will go and buy /Command (I think it is set in stone already - I am
> our small department, but I just want to be fair to my colleagues and
> push them to use some tool, before they come and tell me - hey, we
> solve it in a simple way - write something in Rebol for us :-)