• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Obtain the name of a server in WO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Obtain the name of a server in WO (From: Gilles MATHURIN <email@hidden>)
 >Re: Obtain the name of a server in WO (From: Stephane Guyot <email@hidden>)

  • Prev by Date: WO to go openSource?
  • Next by Date: Re: Flattened relationship and iterator oddness
  • Previous by thread: Re: Obtain the name of a server in WO
  • Next by thread: Session timeout and memory
  • Index(es):
    • Date
    • Thread