-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to open it on Browser? #20
Comments
You could replace your nginx config file with nginx-virtual-host-php-fpm.conf. And restart. |
Did that. I mentioned that I am using your config file. I initially used the url l.papi . Then tried using api.example.com, adding it to the /etc/hosts file. I am getting same error with |
Can post both the |
You won't be able to see a successful pong request because the necessary http headers won't be sent. That's why need need to use the client app.
Did that. I mentioned that I am using your config file. I initially used the url l.papi . Then tried using api.example.com, adding it to the /etc/hosts file. I am getting same error with php -S server also. — |
Output from
404 s are from browser pointing to Output from console
Output on browser is |
The client is connecting and printing out the correct information. Everything is successful. The reason the browser is failing is because you're not providing the http headers (API_ID: 1 Read this about what hmac is and used for |
if you just want a restful api, comment out line 68 in https://github.com/jeteokeeffe/php-hmac-rest-api/blob/master/public/index.php. I won't check the http headers |
I commented the line 68. Still getting indexPage not found. On both |
Hi, I am noob in this. I am learning to write secure api-centric application and found your blog post and this repo. I Downloaded it and am trying it since yesterday. I used your nginx file. I am able to run it via
php client-connect.php
and getting responce. But if i try to use my browser (via nginx or via php inbuilt server) I am gettingindexPage doesn't exist.
on browser. How do I run it on browser.The text was updated successfully, but these errors were encountered: