[rt-users] REST Interface and Authentication

Martin BOULADOUR martin.bouladour at etu.univ-nantes.fr
Wed Jun 11 10:22:06 EDT 2008


Hi again,

> The REST interface accepts "user" and "pass" parameters. If you're using
> Perl, the code will look something like:
>
>     $mech->post("$baseurl/REST/1.0/search/ticket", [
>         user  => "root",
>         pass  => "password",
>         query => "queue='foo'",
>     ]);

Is it true for all the REST interface?

When I send a HTTP GET request on a URL like:

  http://rt.example.com/REST/1.0/search/ticket?query=...&user=root&pass=password

it works, but when I try on another URL like:

  http://rt.example.com/REST/1.0/ticket/55?user=root&pass=password

I get a "401 Credentials required" response...

I don't understand.

Martin Bouladour




More information about the rt-users mailing list