I have an order that has multiple line items (in particular 15) and I am trying to loop through id’s with params What am I missing here?: the out put looks like this: but it needs to be like this for each line item: here is the CURL for a single id: here is the CURL i’ve tried for multiples
Tag: curl
BankID and CURL ERROR 77 or CURL ERROR 60
I’ve spent a few hours trying to get cURL (in PHP) to work with the Swedish BankID service, and running into the following two certificate errors: The code I’m using to initialize cURL is the following: I’ve tried various variations of the CURLOPT_CAINFO and CURLOPT_CAPATH options, but I still get either of the two errors (when I try some variations
Want to get the CSRF Token from this text in CURL PHP
I’m trying to get the CSRF token from raw text, basically, I have a lot of text data on PAGE, I have almost 5-10 CSRF tokens on that page all are the same, I just want to grab one csrf token from text and save into in PHP variable. Here is the code but it’s not working. TEXT Screen: Answer
php IBM Watson Speech to text “unable to transcode data stream audio/flac ” error
I am trying to use IBM Watson’s speech-to-text service using PHP. I don’t know much about the curl language. In the documentation of IBM cloud, there’s this curl code: I used a curl to PHP converter service and got this: I am working on a server, my overall PHP code successfully connects to the server and the user can upload
PHP CURL syntax for WIX
I’m using Wix’s API to query products. I’ve made progress converting their examples to PHP but am stumped with their filtering method. For example, this basic query: works fine when rewritten as: But I’m having trouble filtering to a specific collection. Here’s their example: And here’s my interpretation of it ($collection is my variable to replace the fixed value in
PHP cURL error: SSL certificate problem: self signed certificate
Long story short, I had to reinstall php 7.4 on my Mac. I have a php webapp that hits a .NET API. Prior to the reinstall of php, I was able to hit a locally running version of my API at https://localhost:5001 using cURL in php but now I get a response code of 0 with this error: If I
cURL request (with Stripe API) slowing down page load times – optimal way to make the request?
I’m making a call at the beginning of each page of my site to Stripe (a payment/subscription service) using its API in PHP. I need to check if at any point the subscription has failed/changed so they lose access to the current page. The problem is that it seems to be slowing down my pages a lot, causing noticeable issues
why is curl waiting for a keypress?
I simply want to run the following command: It seems to connect just fine, but it hangs waiting for a keypress. How can I automatize this in a script? EDIT: I have absolutely no idea but it solved by erasing the — part of the URL. Can someone explain to me why? Answer In bash, you must use quotes (single
Need to pass dynamic values inside CURLOPT_POSTFIELDS
I have to make a post request and have done the same using postman for testing. Now, the code base is using php and I have never used php ever before. Upon checking the code section in postman, I got this: The problem is that I have to pass dynamic values instead of firstname, lastname4 etc. The values I have
How do I translate a PHP cURL request to python
I’m coding a tool to get Whois info, and I need to use the WHMCS API for it. This is the code they provide: I want to use this request without PHP, and inside Python. What library should I use and how do I set the variables in the payload?(php or python-style?) Answer What library should I use requests is