Skip to content
Advertisement

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 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

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

Advertisement