wcf data service exposed that authenticates using credentials from php

Mar 11, 2011 at 7:25 PM
Edited Mar 11, 2011 at 7:25 PM

If we run the service from a browser and type in the credentials at the prompt, it works fine.

But when hitting it with a client (using the PHP toolkit for WCF Data Services) the authentication fails.

(toolkit-> http://odataphp.codeplex.com/)

I Looked at the network packets and identified the problem to why it’s not working through PHP…


The browser is requesting the following URI: /AstoriaPHPAuthenticationTest/TestPHPServce.svc/TestCookies

PHP is requesting the following URI: /AstoriaPHPAuthenticationTest/TestPHPServce.svc/TestCookies?


Notice the extra question mark in PHP. This is what is throwing the authentication off. I have to figure out how that question mark is getting in there and how to remove it.


When I try to run a filter command through the browser’s URI, it won’t accept my credentials.


http://server/AstoriaPHPAuthenticationTest/TestPHPServce.svc/TestCookies?$filter=id eq 1