Igal
Member since Oct 20, 2013
- Profile: /members/11345-igal.htm
- URL: http://www.getrailo.org/
- Comments: 10
Recent Blog Comments By Igal
-
Using JavaScript to Submit UTC Dates To The ColdFusion Server
Posted on Mar 23, 2014 at 12:35 PM
(I know that this is an old post, but I just stumbled on it). a better way to convert the epoch time to CFML might be to use DateAdd(), like so: <cfset dt = dateAdd('L', utc, '1970-01-01')> the above works properly on Railo, but ColdFusion chokes on large numbers for "utc&quo... read more »
-
Using X-Forwarded-For To Report IP Address In FusionReactor 5
Posted on Feb 5, 2014 at 11:17 AM
@Ben, The one thing to keep in mind is that at the end of the day ColdFusion, Railo, and OpenBD are simply Java Servlets, and they run inside a Java Servlet Container (e.g. Tomcat, Jetty, etc). So you can do with these engines anything you can do with a Java Servlet. Glad it helped, Igal... read more »
-
Using X-Forwarded-For To Report IP Address In FusionReactor 5
Posted on Jan 21, 2014 at 3:03 PM
I meant CGI.X-FORWARDED-PROTO Anyway, in the CGI scope it should appear as CGI.SERVER_PORT_SECURE... read more »
-
Using X-Forwarded-For To Report IP Address In FusionReactor 5
Posted on Jan 21, 2014 at 3:00 PM
@Jeff, I did not expect CGI.X-FORWARDED-FOR to work as it isn't even a valid variable name, and shouldn't go into the CGI scope anyway. If anything, it should be passed as a http header. See http://www.bennadel.com/blog/1425-Getting-Header-Values-From-A-ColdFusion-Request.htm I am not sure how... read more »
-
Using X-Forwarded-For To Report IP Address In FusionReactor 5
Posted on Jan 21, 2014 at 2:43 PM
@Jeff, Probably. If that is the only server.xml file you can find then yes. I use Railo myself so I'm not sure about the ColdFusion setup exactly, but this comes from Tomcat so it is before ColdFusion/Railo even get the information, and is therefore the same in both setups.... read more »
-
Using X-Forwarded-For To Report IP Address In FusionReactor 5
Posted on Jan 21, 2014 at 2:37 PM
@Jeff, Since CF10 uses Tomcat for a Servlet Container, you can add the snippet I posted above to Tomcat/conf/server.xml in the Host element and then CF10 should set CGI.REMOTE_ADDR to the value from x-forwarded-for.... read more »
-
Using X-Forwarded-For To Report IP Address In FusionReactor 5
Posted on Jan 21, 2014 at 3:29 AM
Actually when you hit your server locally on a machine that has multiple IP addresses (as most servers), you will many times see in CGI.REMOTE_ADDR an address other than the loopback 127.0.0.1 Most Servlet Containers (e.g. Tomcat, Jetty, etc.) have a built in option to accept the X-Forwarde... read more »
-
Converting ColdFusion Date/Time Values Into ISO 8601 Time Strings
Posted on Jan 16, 2014 at 7:31 PM
UPDATE: from Railo 4.2.0.001 forward you can use: #DateTimeFormat( now(), "ISO8601" )#... read more »
-
Converting ColdFusion Date/Time Values Into ISO 8601 Time Strings
Posted on Oct 24, 2013 at 12:43 PM
@Ben -- right, DateTimeFormat() was added in CF10 https://learn.adobe.com/wiki/display/coldfusionen/DateTimeFormat I thought that due to your contributions to the CFML community Adobe makes sure to keep you up to date with their products. FWIW you can upgrade to Railo 4.1.2 at no extra charge ;)... read more »
-
Converting ColdFusion Date/Time Values Into ISO 8601 Time Strings
Posted on Oct 20, 2013 at 9:26 PM
you can add characters by escaping them with an apostrophe, so it can be as simple as: #DateTimeFormat( now(), "yyyy-mm-dd'T'HH:nn:ss" )# I only tested this in Railo 4.1 but I expect it to work the same in ACF10 as both simply pass the mask to Java's java.text.SimpleDateFormat... read more »