Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8115581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:31:12+00:00 2026-06-06T03:31:12+00:00

In my PHP code I try to download a file from a URL starting

  • 0

In my PHP code I try to download a file from a URL starting with https://

$curlHandle = curl_init();
curl_setopt($curlHandle, CURLOPT_URL, $url);
curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($curlHandle);
curl_close($curlHandle);

$response happens to be FALSE unless I do this:

curl_setopt($curlHandle, CURLOPT_SSL_VERIFYPEER, false);

before curl_exec() call.

The URL I download from is from Window Azure Blob Storage and starts with https://myaccount.blob.core.windows.net so I assume there should be no problems with the server SSL certificate.

What’s the reason for this behavior?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T03:31:13+00:00Added an answer on June 6, 2026 at 3:31 am

    This happens because you have not configured curl with CA certificates that are considered trustworthy, so it has no way of verifying the signature on the remote server’s certificate (although in all likelihood the signature is valid).

    To verify the signature you should set either CURLOPT_CAINFO or CURLOPT_CAPATH appropriately.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am try to download image files from url from the following code, but
I develop a code to download a MP3 file from server. The code works
I try to use php to force the image jpg file download, I have
In CakePHP view, When I try this code <?php echo $form->input('download_link', array('type'=>file)); ?>> whose
I have the following code : <?php try { # MySQL with PDO_MYSQL $DBH
I try to us wp_enqueue_script to load my javascript, here is my code: <?php
My PHP code $dom = new DOMDocument(); @$dom->loadHTML($file); $xpath = new DOMXPath($dom); $tags =
I'm using php to download files, rather than the file itself opening in a
I'm trying to change some php code so that i get my values from
I am attempting to download a gunzipped file from an FTP server. It appears

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.