Try to set the port like this:
curl_setopt($ch, CURLOPT_PORT, $_SERVER['SERVER_PORT']);
or:
curl_setopt($ch, CURLOPT_PORT, 8088);
More Related Contents:
- PHP – Debugging Curl
- How to get file_get_contents() to work with HTTPS?
- curl POST format for CURLOPT_POSTFIELDS
- PHP cURL custom headers
- SOAP request in PHP with CURL
- Setting Curl’s Timeout in PHP
- Keeping session alive with Curl and PHP
- Can’t connect to HTTPS site using cURL. Returns 0 length content instead. What can I do?
- How to use basic authorization in PHP curl
- Best way to manage long-running php script?
- Copy Image from Remote Server Over HTTP
- Manually parse raw multipart/form-data data with PHP
- How to get response using cURL in PHP
- Posting multidimensional array with PHP and CURL
- Get Element by ClassName with DOMdocument() Method
- SFTP from within PHP
- Correct way to set Bearer token with cURL
- Run composer with a PHP script in browser
- How can I send cookies using PHP curl in addition to CURLOPT_COOKIEFILE?
- Post to a Facebook user’s wall with cURL PHP
- Send XML data to webservice using php curl
- PHP unable to load php_curl.dll extension
- Login to Google with PHP and Curl, Cookie turned off?
- Is making asynchronous HTTP requests possible with PHP?
- How to get an option previously set with curl_setopt()?
- Using curl in php with client certificate and private key in separate files
- Get the last modified date of a remote file
- PHP Get Content of HTTP 400 Response
- Composer install error – requires ext_curl when it’s actually enabled
- How to perform multiple Guzzle requests at the same time?