Re: Obtain the name of a server in WO
Re: Obtain the name of a server in WO
- Subject: Re: Obtain the name of a server in WO
- From: Lachlan Deck <email@hidden>
- Date: Sun, 10 Sep 2006 13:52:46 +1000
Hi there,
On 09/09/2006, at 5:45 PM, Stephane Guyot wrote:
there is a non documented ( not yet public but perhaps in the
future if Apple Open-souce WO :-) ) API on the WORequest :
public String _serverName()
WebObjects use it internally for the isSecure bindings on the
WOHyperlink
The thing about web applications (as opposed to consumerism which
states that the customer is invariably right) is that you cannot
trust or consistently rely upon the incoming request for the correct
information. There is not one header that consistently gives you the
correct information on an incoming request; besides which virtual
hosting makes it impossible to ascertain the correct info from an ip
address.
In summary: *You* need to decide what domain your application is
served under. Configure this using the WOHost property and the
WOCGIAdaptorURL as previously stated...
HTH
with regards,
--
Lachlan Deck
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden