php-curl Questions
0
I have a PHP scraper that works perfectly on my local. But when I uploaded it to my VPS (Ubuntu 16.04), it's not able to get data from the website. Instead, it's showing this error message:
"curl:...
2
Solved
I am calling an API using curl in PHP, Sometimes it works fine and sometimes I get Failed to connect to api-domain.com port 80: Connection timed out
It's a little strange that sometimes it's workin...
1
Solved
On my local machine I have two services (in laravel 5): userBox and mailBox. mailBox use userBox during login using library "guzzlehttp/guzzle": "~6.0" and restful API (mailBox send user credential...
2
with this simple code I manage to get Google's access tokens.
See the code:
public function authenticate($code = null) {
if (!$code) {
if ($this->log)
error_log(__CLASS__ . '::authenticate()...
Perorate asked 22/12, 2017 at 11:27
2
I try to access to the web with curl in a php script :
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://www.google.fr");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec...
3
Solved
I am developing some PHP on Ubuntu 14.04.4 LS. Running composer install is failing and I can't figure it out. This was working earlier when I was using PHP 5.5.9, but I had to update to at least 5....
Panne asked 25/6, 2016 at 4:25
1
I was trying to upgrade my server to latest Apache 2.4.23 and PHP 7.1 but it fail to load php_curl library, don't know why.
PHP Warning: PHP Startup: Unable to load dynamic library 'ext\\php_curl....
1
I am trying to scrape a shopping cart which uses the cookies for different currencies. When I load the site in chrome browser and inspecting with Cookie Inspector for Chrome, it shows the following...
Polyadelphous asked 4/5, 2016 at 11:35
1
I'm getting this weird behavior with libCURL. When I try to upload a file by appending "@" to the beginning of filename (as documented in libCURL's man page), instead of file contents being uploade...
1
Solved
How can I detect this error using php curl? curl return success even if the URL does not exist.
Not Found
The requested URL /foo/index.php/items/edit was not found on this server.
My code
$pos...
Ranita asked 20/5, 2013 at 4:37
1
Solved
I'm trying to set an API with a payment processor. Below is the code they provided me. There are some information in the $result variable that I want, what I don't understand is what type of variab...
© 2022 - 2024 — McMap. All rights reserved.