I am running the following CURL curl -IX OPTIONS "http://example.com/api/resource?p=1&itemPerPage=2&order[date]=asc" The curl from my computer receive the following response. HTTP/1.1 200 OK Date: Thu, 19 Nov 2020 15:21:39 GMT Server: Apache/2.4.38 (Debian) X-Powered-By: PHP/7.4.11 Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET, OPTIONS, POST Content-Length: 0 Content-Type: text/html; charset=UTF-8 Same request did from browser: General: Request URL: http://example.com/api/resource?p=1&itemPerPage=2&order[date]=asc Request ..
I have an old symfony 1.4 application for which I now want to realize a remote login and some action calls via PHP and cURL. The problem is, that the user doesn’t seem to be logged in for the additional action calls and I always get response from the actions (except the login action), that ..
I have an API. In this API, I pass X-AUTH_TOKEN & X-AUTH-KEY as headers and in the body, I pass raw array data ["1", "2", "3"….] I have tested it using postman, it is returning me response. But when I implement it using symfony, I am getting HTTP/2 404 returned for " This is what ..
I have an endpoint and api key that I am testing in Postman and I get response with data. So, my setting in Postman is working as it should and my curl respone in my PHP code is returning false on dupming curl response and code 200 when trigering api call. I just implemented an ..
This is the first time I ask a question on StackOverflow and I hope I get the right answer. I’m working on a project on Symfony 3.4 and I installed Nexmo/Client Bundle in an attempt to send SMS The scenario is I want to send an SMS after validating a cart Here is the code ..