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: 4-Jun-2001 7:56

From: "Petr Krenzelok"
> OK, thanks for the tip. I made it - it works. I just had to remove > enclosing "" for each parameter and take care of hidden newlines ... > > Now its easy to download the stuff using read/custom url [post > {string-here}]
Good. Of course, later I realized that a single 'to-url could have more easily been placed before 'rejoin. In other words, instead of: 'post rejoin [{name=} to-url name {&address=} to-url address] use: 'post to-url rejoin [{name=} name {&address=} address] which would save a lot of redundant calls on long forms.
> The question is, I would like to do partial downloads, > as some files are 40 MB at the end of the year. I found > Martin Johannesson's script at >, but I can't > get it to work. Isn't there any more easy way? Some > kind of 'rate even for 'read function would be handy :-)
I have no way to exactly duplicate your conditions, but I simulated a situation where I wanted to skip the first 800k of a 1600k file, then download in 1k chunks and the following worked for me. from-port: open/direct ftp://user:[pass--www--mydom--dom]/logs/my-access-log to-port: open/direct %/local/folder/my-access-log.txt from-port: skip from-port 800000 ;skip the first 800k ;for fun download in small chunks, to prove that tight control is possible while [data: copy/part from-port 1000][append to-port data] close from-port close to-port Maybe this method will be useful. --Scott Jones