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: petr:krenzelok:trz:cz at: 30-Oct-2001 10:03

Hallvard Ystad wrote:
> 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 >
huh, what is the problem of re-setting the word upon your need then? Although 'create-request seems to be pretty nested, you can: write %my-http-handler.txt mold system/schemes/http/handler ...then change its source, and rebind it back in your user.r file: system/schemes/http/handler: load %my-http-handler.txt But I am not sure if it is secure way to do so, as RT can change handler code in future releases ... One other note - do you know the difference in none vs false in protocol schemes settings? If you use e.g. system/schemes/ftp/user: none, it will look at parent scheme - system/schemes/default for 'user field setting, and if present, it will override your none above. If you want to prevent it, just use system/schemes/ftp/user: false e.g. I hope I do remember it correctly :-) Cheers, -pekr-