Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[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,
we've got
> new mainframe. Part of it contains installed Unix, and one of the
> is Rexx based ftp server from IBM (or so I think :-)
SAP: :Lots-Of-Money ;-)
> 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
authentization, as
> 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
> and also javascript code.
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. Generally, JavaScript code can be ignored, as it is used to validate fields, update other fields, etc. Keep an eye out for hidden fields (that are not visible in the browser) as they frequently contain critical data.
> 3) how do I recognize which parameters should be enclosed in "", and
> don't?
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.
Should I
> 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
chief of
> 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 :-)
Great strategy!
> Thanks, > -pekr-
Good luck. --Scott Jones