I have a software. There is a table, there are URLs in this table. There are 100 URLs on each page. picture Then I got an API where I can pull Alexa and DA Values. I wanted to show these values …
Tag: php-curl
How to pass PHP $variables in cURL array
I would like to pass some simple PHP variables (such as $name1 and $email1) to the following cURL block (PHP-Curl) CURLOPT_POSTFIELDS =>”{n”email”: “percy.jackson@gmail.com”,n”name”: “…
Simple Html Dom library works on local server but not in mostly live server
I am using curl for web scraping and to parse html used simple html dom library which is great and simple. But my main problem is that this library works smoothly on local server but not in live server. Strange thing is that it can work on 000webhost hosting without any issue, but when I use other paid hosting like
SSL certificate problem: unable to get issuer certificate
I’m currently testing an API on a website with a certificate by executing a php script that uses curl, in command line on my local windows machine. But the script never manages to reach the server. I …
Decoding a gzipped string in PHP
I am trying to decode a gzipped body of a REST response (YouTrack-API) with PHP. Nothing seems to work: Automatic decoding from CURL does nothing Using Guzzle with headers set to accept encoding does nothing Simply putting the acquired string into gzdecode() does nothing I have tried gzinflate, gzdecode and some wild combinations of them including stripping off bytes at