![]() ![]() ![]() Host: rms-world-check-one-api-pilot.thomsonreuters. curl get response headers php Comment 0 xxxxxxxxxx ch curlinit() curlsetopt(ch, CURLOPTRETURNTRANSFER, 1) curlsetopt(ch, CURLOPTHEADER, 1) //. This function is an alias for apacherequestheaders (). Please send me the output generated by your code in the below format so that I can look into this. Apache Apache Functions Change language: Submit a Pull Request Report a Bug getallheaders (PHP 4, PHP 5, PHP 7, PHP 8) getallheaders Fetch all HTTP request headers Description getallheaders (): array Fetches all HTTP headers from the current request. I would need the response code to debug this further. The example performs a basic cURL GET request in PHP. You can use this to understand when you are going wrong. Here’s a featured snippet from the article. This will generate the entire code along with the entire code for that particular request. You can check this in Postman by clicking the code just below "Save" button on the right side of Postman. For this, execute your code and then use the same time stamp in Postman and send the API request (obviously the API would fail as the time stamp is incorrect but it would still generate the signature) to check the signature being generated by it. Kindly compare the signature generated by your code and the one generated by Postman to see if they match. What is the response code you are receiving when you call the API? If(!($secret = config('app.tr_secret'))) world-check world-check-one php response Private function generateAuthHeader($dataToSign) Here is my code: class ThomsonReutersHelper The last function is what I am calling for getting the list of groups. I have tested the base64_encode of hmac-sha256 as well and all are being generated as expected in the private functions of the class. Postman gives the response while my code doesn't. I have followed the postman collection, and used the php cURL that was generated in there. I am initiating the integration to World-Check One and right off the bat I am facing an issue with getting no response when I make a GET request through php cURL.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |