Simon Tam

Can someone post an example of some code which sets the header for how to utilize the filters I can't make sense of what the docs are asking me to do.

Setting it as an http header doesn't seem to work.

Mind you I'm using PHP for my testing and here's the code:

$url = "" . $ownerhandle . "/LiveContacts";
$header = array("Authorization: DomainAuthToken at=\"" . $authtoken . "\"",

$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);

Am I doing this wrong in trying to put the filter in the HTTP header I sniffed the HTTP packets and the filter isn't even in the header (my guess is PHP/Curl doesn't like the format or what I'm trying to do)

Re: How does one actually use the filters?

Bill Zissimopoulos (MSFT)

Hi, Simon:

The "filter" feature was unfortunately cut down at the last moment before Alpha release. We intend to reintroduce it in our next release.

If you are sniffing HTTP packets and finding that the header is not being sent, it could very well be that the curl library refuses to send this header. Unfortunately I am not familiar with the library and cannot help you with that.


Re: How does one actually use the filters?

Dawei@MSFT header is removed for security reason. Please try put filter in query string. e.g. Filter=MessengerClient

Re: How does one actually use the filters?

Oleg G. Sharov

How you get $authtoken

I'm using PHP too, and can't understand where get authtoken.

Re: How does one actually use the filters?


Oleg, have a look at this article here: id=654. All in all there are three methods of authentication: Domain Authentication, Mutual SSL Authentication and RPS (Relying Party Suite) Authentication. First one is not working at the moment, as the service, which is in alpha version, is "temporarily unavailable", second requires special SSL certificate. I have successfully retrieved the auth.token using RPS method, which involves SOAP.

Re: How does one actually use the filters?

Federico Raggi - MSFT

Just a small clarification: Mutual SSL authentication is the authentication mechanism not supported on the Alpha. Domain Authentication is available and working well in the Alpha.

Re: How does one actually use the filters?



Were you using PHP to get the RPS If so how did you setup your SOAP call