HTTP Headers sent from IMified
I have a bot that is running on a hosted server that is accessed from the IMified platform. I'd like to use the same code base running this bot to generate output for other platforms and user agents.
Is there any way to differentiate the HTTP request received from the IMified platform (so that I can format responses for my bot) vs. other platforms?
Does the HTTP request from IMified:
- Have any information as to user agent type (allowing me to check the HTTP User_agent header); or,
- Does the request come from a predefined IP (or range of IPs) that I could check?
Thanks for your help.
2 Posted by Dave Hoff on 03 Sep, 2009 01:54 PM
Hi Mark,
Yes, we send along a user-agent header with a value of Imified/1.0
- Dave
3 Posted by Mark Headd on 03 Sep, 2009 02:44 PM
Doing a simple:
in PHP, yields:
I've tried this in the debugger and via a Jabber client, and saw the same results.
I'm cool if this value is what is intended, just want to know if it will consistently be this value before building out methods in my code to check for this.
Thanks!
4 Posted by System on 04 Sep, 2009 04:41 PM
A Lighthouse ticket was created for this discussion
Support Staff 5 Posted by Adam Kalsey on 04 Sep, 2009 04:42 PM
That would be a bug. We'll get that fixed.
6 Posted by Dave Hoff on 11 Sep, 2009 02:06 PM
Hey Mark, the user agent should now return Imified/1.0.
7 Posted by slloyd on 12 Sep, 2009 01:38 PM
I checked my logs and my bot is still returning Railo (CFML Engine) as the HTTP_USER_AGENT so it does not look fixed to me.
8 Posted by slloyd on 12 Sep, 2009 01:52 PM
I have also noticed that your debugger agent does not return a way to detect it came from imified in the user-agent. Would it be possible to add?
9 Posted by mlucas on 18 Oct, 2010 02:55 PM
Sorry for the late response regarding your issue. Is this still an issue that you are currently experiencing? I will be monitoring this page for a reply and I look forward to helping resolve this for you.
-Matt Lucas
IMified Support