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

  • SEARCH
  • Home
  • 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 7854607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:07:07+00:00 2026-06-02T20:07:07+00:00

I have a problem with a CURL request i make in php. The issue

  • 0

I have a problem with a CURL request i make in php. The issue is that at random times it returns a timeout. What i noticed is that after i added custom error pages the 404 custom page works but the 408 page when done with curl returns nothing.

Example of 404 page: http://emailingrestauraweb.com/qweqwe

Below is my php code:

$strCookie = 'PHPSESSID=' . $this->SessionID;
$curl_log = fopen("curl.txt", 'w');
//Setup connection
$curl = curl_init();
curl_setopt_array($curl,array(
        CURLOPT_URL => $URL,
        CURLOPT_USERAGENT=>$this->UserAgent,
        CURLOPT_POST =>true,
        CURLOPT_POSTFIELDS => http_build_query($arrParams, null, '&'),
        CURLOPT_COOKIE => $strCookie,
        CURLOPT_COOKIESESSION=>1,
        CURLOPT_HEADER => 1,
        CURLOPT_VERBOSE         => 0,           // Logs verbose output to STDERR
        CURLOPT_SSL_VERIFYPEER  => 0,           // Do not verify certificate
        CURLOPT_TIMEOUT => 300,
        CURLOPT_CONNECTTIMEOUT=>260,
        CURLOPT_NOSIGNAL => 1,
        CURLOPT_RETURNTRANSFER=>1
    ));

    //Send request
    $result_json = curl_exec($curl);
    $error_code =curl_getinfo($curl, CURLINFO_HTTP_CODE);
    curl_close($curl);

I tried everything i have no idea why this happens and it’s random too.

UPDATE 1

I run the scripts on 2 slicehost slices. I make a request from one slice to another to an api. The api is an OEMPRO software for sending emails.
I understand that 408 means timeout but this seems to random and most of the time it’s repetitive like a block and i’m wondering if this could be something that that software might use.

This issue happened after my domain where OEMPRO is running expired for like 3 days and then it went back and now i have this problem…

Thanks for all the answers.

  • 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-02T20:07:08+00:00Added an answer on June 2, 2026 at 8:07 pm

    You said your domain was expired for 3 days. There is a high probability that this was a DNS resolve issue. Give it 24-48 hours and let us know if there is any change.

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

Sidebar

Related Questions

I'm implementing Google Maps service with PHP/CURL and currently have a problem with Maps
I have a php script that uses curl_multi to make multiple requests at the
I have a problem logging onto a page and then using it with cURL.
I want to get data using CURL but I have a problem. When I
I have problem with fancybox. I want to write a function that will run
I have a page that is making an XML POST-Request to an URL on
i'm having an weird problem, my project have a login page, that's working, but
I have a PHP page that will collect mp3 links from downloads.nl. The result
I have a php script that needs to run for quite some time. What
I have a simple PHP program that list some topics. for example I have

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.