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

[REBOL] Custom HTTP header

From: francis:franfran at: 24-Oct-2010 20:55

Hi, I am a new comer in Rebol world, and would like to ask a question about block. If I want to download a page with a custom HTTP header, I could do:
read/custom [ header [ Cookie: "a=1234" Referer: "" ] ] However, if I want to assign the header as a word first, the following won't work.
custom-header: [ Cookie: "a=1234" Referer: "" ] read/custom [ header custom-header ] It is because the custom-header got evaluated rather than passing as data, and I could confirm this by:
print cookie a=1234 May I know how can I solve this problem by using the correct syntax? Thank you very much! franfran