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 6678557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:15:28+00:00 2026-05-26T04:15:28+00:00

I get SSL connection timeout error when I try sending xml message and expect

  • 0

I get SSL connection timeout error when I try sending xml message and expect a response:

$xml = <<<EOL
<?xml version='1.0' encoding='UTF-8'?> 
<abc>
<UserId>123</UserId> 
</abc>
EOL;

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, array('xmlmessage' => $xml));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 4);

$result = curl_exec($ch);
if ($result === FALSE) {
    die(curl_error($ch));
}

echo $result

Can anyone help?

  • 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-05-26T04:15:28+00:00Added an answer on May 26, 2026 at 4:15 am

    On the code above you are missing:

    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); 
    

    Other than that, you need to make sure curl has ssl support. Create a file named “test.php” and put the following in it:

    <?php
    phpinfo();
    ?>
    

    then load the page via your browser. On the output, scroll down towards the “middle” of the page where
    you can see details about the modules installed/enabled. Look for the curl information. If it has SSL support
    you will see something SIMILAR to (notice how it “mentions” ssl):

    cURL Information    libcurl/7.21.0 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.15 libssh2/1.2.6
    

    Otherwise you’ll need to contact the server admin to have him/her install ssl support for it.

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

Sidebar

Related Questions

I get the following error when downloading excel file in SSL site: Internet Explorer
We get the following error; The request was aborted: Could not create SSL/TLS secure
I need to get the free Google charts working over SSL without any security
I'm stuck trying to get a WinInet HTTP POST via SSL using ONLY C.
I am trying to call a webservice using ssl. How do i get the
I have a page that is under SSL. However, in IE6, I get a
I'm doing some experimenting with HttpWebRequest, and need to get it working with SSL.
I need to establish a HTTPS 2-way SSL connection from my iPhone application to
I'm trying to query LDAP over an SSL connection. I was sent a certificate
I'm implementing a client SSL connection via Boost.ASIO. According to the reference book I'm

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.