Skip to content

Commit acc84fc

Browse files
committed
added 'Content-type: application/json' to verify API request
1 parent 306972c commit acc84fc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

php-demo/verify/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ As you can see, Brad is no match for Angelina:
3838

3939
![Box Around Face](/php-demo/verify/docs/brad_angelina_verify.png?raw=true)
4040

41+
** Important note: In order to match your uploaded images against the example images, you'll have to load all of the subjects into a gallery named "verify-demo". You can do this easily by downloading the https://github.com/kairosinc/Kairos-SDK-PHP repo and directing your browser to https://kairos-sdk-php:8890/examples/methods_test.php. (Must be hosted, or run locally using a solution stack such as MAMP, WAMP, LAMP or XAMPP)
42+
4143
### JSON display
4244

4345
The JSON response for the image which has been verified is displayed in the right panel when the SHOW JSON link is clicked.

php-demo/verify/verify.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
curl_setopt($request, CURLOPT_POST, true);
1717
curl_setopt($request, CURLOPT_HTTPHEADER, array(
18+
"Content-type: application/json",
1819
"app_id:" . APP_ID,
1920
"app_key:" . APP_KEY
2021
)
@@ -37,6 +38,7 @@
3738

3839
curl_setopt($request, CURLOPT_POST, true);
3940
curl_setopt($request, CURLOPT_HTTPHEADER, array(
41+
"Content-type: application/json",
4042
"app_id:" . APP_ID,
4143
"app_key:" . APP_KEY
4244
)

0 commit comments

Comments
 (0)