2

Is Rebol-based Cheyenne server able to process HTTP REST requests like « /product/1234» / « /product/{productId}» (with data in the URL, not as GET parameters) ? It could be possible if Cheyenne can redirect URLs with wildcards like '/product*' or '/product/*' to a single RSP (Rebol Server Page).

Is it possible through configuration ? I've tried a few different configurations (http.cfg) without success.

Thanks.

dreamyToto
  • 131
  • 2

1 Answers1

2

The most straightforward way is to pass 404 error handling to some type of dispatcher, e.g. CGI or RSP:

default [
    default [%index.html]
    on-status-code [
        404 "/cgi-bin/request-handler.r"
    ]
]

My implementation of the Rebol Desktop Project has such an http.cfg.

rgchris
  • 3,698
  • 19
  • 19
  • Thank you very much for this 404 trick ! Very helpful. The drawback : no more default 404 behavior by configuration on the same virtual host, for other webapps running on the same Cheyenne server. – dreamyToto Feb 27 '18 at 19:34