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 http://192.168.1.100:8080 [
    header [
        Cookie: "a=1234"
        Referer: "http://www.xyz.com";
    ]
]

However, if I want to assign the header as a word first, the following won't
work.

>>
custom-header: [
    Cookie: "a=1234"
    Referer: "http://www.xyz.com";
]
read/custom http://192.168.1.100:8080 [ 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


-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to