Re: Full URL on dev
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 (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/getsharp%40gmail.com > > This email sent to getsh...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Full URL on dev
morning - Yes that is it. I was using WOApplication apis and they weren't giving me the "correct" info. Thanks James On Feb 23, 2010, at 10:22 PM, Mike Schrag wrote: > I assume he means via API? > > context()._generateCompleteURLs(); > String url = context().urlWithRequestHandlerKey(..) > context()._generateRelativeURLs(); > > ms > > On Feb 23, 2010, at 10:08 PM, Kieran Kelleher wrote: > >> Open the launch config in Eclipse. Go to the WO tab and change the WOPort >> launch property from -1 to a fixed port number. >> >> >> >> >> On Feb 23, 2010, at 6:09 PM, 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 (Webobjects-dev@lists.apple.com) >>> Help/Unsubscribe/Update your Subscription: >>> http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com >>> >>> This email sent to kieran_li...@mac.com >> >> ___ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >> Help/Unsubscribe/Update your Subscription: >> http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com >> >> This email sent to msch...@mdimension.com > > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Full URL on dev
I assume he means via API? context()._generateCompleteURLs(); String url = context().urlWithRequestHandlerKey(..) context()._generateRelativeURLs(); ms On Feb 23, 2010, at 10:08 PM, Kieran Kelleher wrote: > Open the launch config in Eclipse. Go to the WO tab and change the WOPort > launch property from -1 to a fixed port number. > > > > > On Feb 23, 2010, at 6:09 PM, 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 (Webobjects-dev@lists.apple.com) >> Help/Unsubscribe/Update your Subscription: >> http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com >> >> This email sent to kieran_li...@mac.com > > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com > > This email sent to msch...@mdimension.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Full URL on dev
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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com