HTTP Headers sent from IMified

Mark Headd's Avatar

Mark Headd

03 Sep, 2009 01:46 PM via web

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.

  1. 2 Posted by Dave Hoff on 03 Sep, 2009 01:54 PM

    Dave Hoff's Avatar

    Hi Mark,

    Yes, we send along a user-agent header with a value of Imified/1.0

    - Dave

  2. 3 Posted by Mark Headd on 03 Sep, 2009 02:44 PM

    Mark Headd's Avatar

    Doing a simple:

     echo $_SERVER["HTTP_USER_AGENT"];
    

    in PHP, yields:

     ["HTTP_USER_AGENT"]=> string(19) "Railo (CFML Engine)"
    

    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!

  3. 4 Posted by System on 04 Sep, 2009 04:41 PM

    System's Avatar

    A Lighthouse ticket was created for this discussion

  4. Support Staff 5 Posted by Adam Kalsey on 04 Sep, 2009 04:42 PM

    Adam Kalsey's Avatar

    That would be a bug. We'll get that fixed.

  5. 6 Posted by Dave Hoff on 11 Sep, 2009 02:06 PM

    Dave Hoff's Avatar

    Hey Mark, the user agent should now return Imified/1.0.

  6. 7 Posted by slloyd on 12 Sep, 2009 01:38 PM

    slloyd's Avatar

    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.

  7. 8 Posted by slloyd on 12 Sep, 2009 01:52 PM

    slloyd's Avatar

    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?

  8. 9 Posted by mlucas on 18 Oct, 2010 02:55 PM

    mlucas's Avatar

    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

Reply to this discussion

Internal reply

Formatting help or Preview

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.