[REBOL] Re: POST examples ...
From: petr:krenzelok:trz:cz at: 2-Jun-2001 0:30
Hi Scott.
thanks for the reply!
> From: "Petr Krenzelok"
> > However, - nowadays more modern solutions exist, one of them being
> TCP/IP
> > 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
> services
> > is Rexx based ftp server from IBM (or so I think :-)
>
> SAP: :Lots-Of-Money
> ;-)
I know :-) What is more - you have still to do most things in the most
complicated manner - yourself :-)
> > 2) what should I concentrate one? There seem to be plenty of various
> fields,
> > 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.
Excelent description. There are two forms, and even some hidden fields ...
> > 3) how do I recognize which parameters should be enclosed in "", and
> which
> > don't?
>
> It is all "stringified" ultimately and url encoded. If there are spaces
> in data, then enclose.
Ah, I don't think so. I remember one Sterling's email where he suggested
someone to remove enclosing "" for one of parameters. I also tried the same
with one of them, and it seemed to help (no more complaints about it, but
the server seemed still to lack some info ...)
> > 4) is there any way of how to split download into several parts? Some
> of
> > files are more than 40 MB in size. I think that 'read reads whole file
> into
> > memory. I remember some discussion using read/custom [start 0 end 100]
> or
> > 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
> all
> > necessary http info send to server?
>
> http://www.rebol.com/docs/core23/rebolcore-14.html#pgfId-539576
>
> under direct port access
hmm, is there a way of how to get file length? using POST methog?
-pekr-