[REBOL] Re: Morpheus (was: set-net question. No, TWO questions)
From: hallvard:ystad:helpinhand at: 30-Oct-2001 9:23
Petr Krenzelok skrev (Tuesday 30.10.2001, kl. 08.57):
> > >Inside the 'open func in system/schemes/http/handler I find the
> following:
> > > HTTP-Get-Header: make object! [
> > > Accept: "*/*"
> > > Connection: "close"
> > > User-Agent: system/schemes/http/user-agent
> > > Host: join port/host any [all [port/port-id
> (port/port-id
> > > <> 80) join #":" port/port-id] #]
>
>http-accept-header??
I mean the Accept: "*/*" header, as seen above. Certain browsers cannot
parse HTML, some need WML and some need cHTML. I can detect most of these
needs from the "user-agent" header, but sometimes the accept-header is just
as good. And I need to be able to specify (in rebol, with the
accept
-header) that I want WML from a site, so that it won't return HTML.
>you don't need to use reduce imo, it is a kind of a dialect IIRC.
>read/custom
>url [POST {blablabla}] should be enough, but it really doesn't probably
>matter
Thanks. (That's just the kind of code you get when you change it a lot back
and forth... )
>just use View desktop and it's visual configurator and press save button.
>Then
>you can look at your user.r file to see how rebol stores the value ...
>btw: I
>have it defined as word, not literal ...
Good idea. Why didn't I think of that? Anyway: rebol stores it as a word,
not a lit-word. And so do I, from now on...
Thanks again,
~H