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

[REBOL] Re: Morpheus (was: set-net question. No, TWOquestions)

From: hallvard:ystad:helpinhand at: 30-Oct-2001 13:06

Cyphre skrev (Tuesday 30.10.2001, kl. 12.35):
>poke first at second get in system/schemes/http/handler 'open 15 2 >"your-new-value"
Worked fine, thanks. Setting headers like this is a bit dumb. I even feel that 'send should be simpler. When I want to send an email with, say "X-diddely-do: hello!" in the header, I am forced to make a complete header-object, thus: send/header [hallvard--ystad--helpinhand--com] "test" make object! [X-diddely-do: "hello!" from: none to: none date: none] The three nones are there for rebol to use my default settings. A simpler and more reasonable way to do it, in my opinion, would be like this: send/header [hallvard--ystad--helpinhand--com] "test" [X-diddely-do: "hello!"] Rebol could then simply add [X-diddely-do: "hello!"] to the other headers. In the same way, read could have a refinement like this: read/header http://www.rebol.com/ [Accept: "text/html" user-agent: "007"] I hope something like this will be implemented in future releases... ~H PS. Is there any good documentation for the /custom refinement block dialect in 'read anywhere?