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

[REBOL] POST examples ...

From: petr::krenzelok::trz::cz at: 1-Jun-2001 19:13

Hi, at my work we are downloading CICS (IBM3270) files using some custom company apps, which simply wraps and parses screen data and stores them in the file. 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 :-) 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 ftp protocol, but they don't want to prepare special solution for us. But we need a little bit of automatition ... So I tried to wrap the solution usign Rebol, but I've got only some 30 min 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 http request, so I have few questions here: 1) are there any examples available using POST method? 2) what should I concentrate one? There seem to be plenty of various fields, and also javascript code. 3) how do I recognize which parameters should be enclosed in "", and which don't? 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? 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 much help us to make some of our processes more automatic, the more chance we 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 don't push them to use some tool, before they come and tell me - hey, we can't solve it in a simple way - write something in Rebol for us :-) Thanks, -pekr-