"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Authentication Failure PostNewTarget

I'm new to Vuforia web service. I downloaded the sample for php to practice the web service API, but the API always returned me Unexpected HTTP status: 401 Unauthorized {"result_code":"AuthenticationFailure","transaction_id":"2e6d731a06bf4eb885d0a5a7ef175d50"}

I get no idea what goes wrong that it never success for me to post a new target with a valid server and secret key.

Hello,

The auth mechanism for Posts and Gets is similar, but not the same. A post to upload targets requires the MD5 hash of the message body to be used in the secret key calculation. A Get doesn't.

Thanks.

Hello,

I found I missed out 1 method from setHeaders.

$this->request->setHeader("Content-Type", "application/json" );

Issue fixed when this method invoked in setHeaders.

Thanks a lot for advising.