Re: Full URL on dev
Re: Full URL on dev
- Subject: Re: Full URL on dev
- From: Michael Sharp <email@hidden>
- Date: Wed, 24 Feb 2010 09:37:38 +1000
Hi James,
I'm able to build complete URLs in both dev (directconnect & webserverconnect) and deployment environments using the request header value for one of the keys like server_name or host, or on an ERXRequest using the remoteHostName() method. This gives me the appropriate host:port value and the rest can be gleaned from the uri() method on WORequest.
That's what works in my setup anyway, a dig around your request headers would be a good start..
Sharpy..
On 24/02/2010, at 9:09 AM, James Cicenia wrote:
> Hello -
>
> How do I get the full absolute url in my dev environment...
>
> I need to get something like:
>
> http://10.0.1.200:64420/cgi-bin/WebObjects/ .....
>
> Especially the dynamic port number
>
> Thanks
> James
>
> _______________________________________________
> 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
_______________________________________________
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