I am sure I am overlooking something obvious or simple, but in my quest to build an external authentication server on Drupal, I have a need to provide a very simple http response to an HTTP GET request.

I assume it is possible. Can I just change something in the module declarations, or is it more complex?

 $items['member/verify'] = array(
    'title' => 'Valids',
    'page callback' => 'my_id_verify_me',
    'access arguments' => array('access content')
  );

Thanks!

Comments

nevets’s picture

print instead of returning a value.

cayenne’s picture

Is that ordinary behavior, or am I exploiting an undocumented feature?

Thanks!

:)

nevets’s picture

It may be both :) Seriously it is how it works (javascript that uses callback reply on it).

cayenne’s picture

Thanks!

:)