Yes, I like quick and dirty, especially in this case since all I really want to know is if some server on the 'net can be called and some sort of response is received. I also didn't know you could use fileRead() is this scenario to 'read' websites via a HTTP-GET command.
That being said I used the latest nightly and hit "http://freegeoip.net/json" using the fileRead() function and it returns binary data. Not exactly what I expected when the site returns a string of data formatted as JSON. The HTTP response from there server even has the mime-type set as 'application/json'. Using the http() function the response comes through as normal JSON encoded text which I can manipulate. Thoughts? Thanks for the suggestions everyone. -JSLucido On Wed, Mar 6, 2013 at 7:40 AM, Alan Williamson <[email protected]> wrote: > sometimes the best way is the simplest way. > > a quick <cfset FileRead("http://bing.com")> will let you know how things > sit > > > On 05/03/2013 23:00, Jeff Lucido wrote: > >> I have an application which I currently use in the traditional server >> (Internet-based)/client scenario as well as an app on my laptop for data >> collection in the field. >> >> When I am mobile with the application I often use a Verizon hot spot to >> stay connected for certain aspects of the application. The issue is >> sometimes the connection drops in and out. >> >> I have a simple (fairly) function which checks the Internet connection >> via a HTTP request and with trapping, etc. I make the best guess when the >> mobile app is connected and not. >> >> My question is there has to be a better way. Does anyone have a >> recommendation for a better WAN connection test? Surely there are others >> who use their applications in a mobile manner too. Always open for >> suggestions. >> > > -- > -- > online documentation: http://openbd.org/manual/ > http://groups.google.com/**group/openbd?hl=en<http://groups.google.com/group/openbd?hl=en> > > --- You received this message because you are subscribed to the Google > Groups "Open BlueDragon" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to > openbd+unsubscribe@**googlegroups.com<openbd%[email protected]> > . > For more options, visit > https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> > . > > > -- -- online documentation: http://openbd.org/manual/ http://groups.google.com/group/openbd?hl=en --- You received this message because you are subscribed to the Google Groups "Open BlueDragon" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
