php-curl Questions

7

Solved

I want to make GET, POST & PUT calls to a 3rd party API and display the response on the client side via AJAX. The API calls require a token, but I need to keep that token secret / not in the cl...
Ganoid asked 23/2, 2018 at 12:11

6

I used cURL to get data from another website. Sometimes it shows data and sometimes empty result Here is my Code function get_data($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $u...
Charmion asked 5/6, 2015 at 12:9

2

Situation I am trying to make a call to the Shopify REST API where I have more than 50-250 results but I am not able to get the Link Header from the cURL Response which contains the Pagination Link...
Goddamned asked 29/6, 2021 at 1:2

3

How to translate following php curl request to curl executable command. $curlOpts = array( CURLOPT_PORT => "3000", CURLOPT_URL => 'www.example.com', CURLOPT_RETURNTRANSFER => true, C...
Jordon asked 8/3, 2017 at 12:34

7

I have Windows 10 with WAMP server (Apache 2.4.9, PHP 5.5.29 VC11 x64, e MySQL). All works fine, but now I will use curl extension. I go into C:\wamp\bin\php\php5.5.29\phpForApache.ini (from webse...
Trainload asked 22/9, 2015 at 13:25

1

I have a simple PHP script, which sends a GET request with some parameters to an external API, and receive some json data in response. I used file_get_contents for this, and it worked for the last ...
Didymium asked 25/9, 2020 at 7:39

2

I am trying to send a request using cURL and PHP and it throws an error. HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1) I am sending CURLOPT_HTTP_VERSION like this curl_setopt...
Sinter asked 17/3, 2019 at 20:27

6

I am having trouble curling an HTTPS url that uses TLS1.2, in my curl operation I post my login data into the website and save it in cookiefile. The error message I am getting is this error:1407...
Perennial asked 9/5, 2015 at 21:14

1

Solved

someone please help me know the difference about setting opt in curl php. $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "abcxyz", CURLOPT_CUSTOMREQUEST => "GET", CUR...
Litt asked 18/9, 2018 at 18:1

4

Solved

Upgraded to 18.04 from 16.04 today using do-release-upgrade -d During the upgrade I was informed that some packages would be removed, these included: Remove: libperl5.22 lxc-common perl-modules...
Picky asked 8/5, 2018 at 20:49

1

My server cURL version is newer then client's version when doing remote call, client's server automatically switches to http/2, Is there any way i can force to use curl with http/1.1 How to set cUR...
Mcclain asked 18/3, 2019 at 5:19

3

Solved

I'm trying to send headers using php curl - which should be rather simple - but there seems to be an issue. Running on PHP 7.2 I'm setting the headers with curl_setopt($ch, CURLOPT_HTTPHEADER, ar...
Hoseahoseia asked 15/1, 2019 at 18:38

2

Solved

In Guzzle documentation you can find a request option callable called on_stats which allows you to get access to transfer statistics of a request and access the lower level transfer details of the ...
Snowfall asked 20/4, 2021 at 14:52

8

Solved

Upgraded to Ubuntu 16.04 and facing problem after installing PHP5. Installed PHP-5 with following: sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get upgrade sudo apt-get ins...
Delmydeloach asked 6/8, 2016 at 4:41

4

I am looking to set curl to use a proxy server. The url is provided by an html form, which has not been a problem. Without the proxy it works fine. I have found code on this and other sites, but th...
Cribriform asked 6/3, 2011 at 16:54

1

Solved

So I have obviously googled the error - but PHP (PHP 7.4.4 (cli)) curl gives me the error: Curl error: operation aborted by callback with the following code: private function curl_post($url,$post,$...
Uncivil asked 10/8, 2020 at 13:59

1

I am at a situation, where I need to download files from the URL, it is easy with the direct file URLs like https://somedomain.com/some-path/somefile.exe file_put_contents( $save_file_loc, file_get...

6

Solved

I want to connect to a remote file and writing the output from the remote file to a local file, this is my function: function get_remote_file_to_cache() { $the_site="http://facebook.com&quot...
Containment asked 1/11, 2011 at 13:55

1

In our PHP application, we need the PHP curl-extension built in a way, that it supports the following features: WinSSL (Access to the Windows certificate store) NTLM, Basic and Digest authenticat...
Trahurn asked 8/1, 2019 at 17:41

2

Solved

If i use the CURLOPT_TCP_FASTOPEN option in my code , then i get the following error. Use of undefined constant CURLOPT_TCP_FASTOPEN - assumed 'CURLOPT_TCP_FASTOPEN' The CURLOPT_TCP_FASTOPEN ...
Ethics asked 7/5, 2020 at 5:27

1

Solved

I need to SOAP request https://address?wsdl which require .p12 certificate using PHP7.2. After hours of reasearch only thing I was able to do is making this request from bash: $ curl -k -E cert.c...
Nevis asked 19/4, 2018 at 10:2

4

I've been having problems on my development server where cURL, while working perfectly with anything HTTP, does not function properly with anything HTTPS—even the exact same resource with different...
Augustusaugy asked 19/3, 2012 at 16:53

5

I am on a Win 64 bit OS, php 5.6.8 using Eclipse PDT to develop PHP. I have come across this Call to undefined function curl_init() error. I removed the ; preceeding extension=php_curl.dll in php...
Handicap asked 24/4, 2015 at 4:21

2

Solved

I'm trying to use the Tone Analyzer API in a Laravel application. No matter what I try, I always get the same response of {"code":401, "error": "Unauthorized"}. I suspect my issue is that I can't f...
Judon asked 30/4, 2019 at 2:0

1

Solved

I'm getting "Could not resolve host" when I call curl_error($ch) in curl_multi context, the errno is 0 though, and the request is done successfully also(I'm getting the expected response ...
Crawl asked 19/2, 2019 at 17:32

© 2022 - 2024 — McMap. All rights reserved.