Re: [Simpleweb-Support] Unable to get scheme/port/domain from incoming Request
Brought to you by:
niallg
From: Petite A. <pet...@me...> - 2012-11-12 21:40:48
|
On Nov 12, 2012, at 9:50 PM, Tom Denley <t.d...@ca...> wrote: > My question still remains though: what mechanism does Simple support > for determining the scheme of the request? As far as HTTP goes… there is no way to tell… Your best bet is as follow: (1) Fully qualified request URI (2) Host header (3) There is no number (3) So, you can get the domain and port from (1) or (2). And infer the scheme somehow by looking if you have a TLS connection or something. In short, you will need some, err, heuristics to sort this one out. Oh, well... |