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

The Archive Base Latest Questions

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

I know about error in application running on server and invoked operation disconnect all

  • 0

I know about error in application running on server and invoked operation disconnect all HTTP clients. I need to invoke this functionality on the server but I’m not able to fix the error.
Here is my server code:

<?php
// file: run_script.php
shell_exec('close_all_HTTP_connections_error '.$_REQUEST['params']);
?>

I’m trying to find workaround via AJAX call, I know that call fails, but user doesn’t see error like ERR_EMPTY_RESPONSE. My problem is that I need to do another call to the server (which doesn’t fail normaly). The second call is not send to server because previous call fail I guess.
Here is my jQuery AJAX call:

function sendData(url, step) {
  $.ajax({
    type: 'POST',
    async: true,
    url: url,
    headers: { // I try it without this also
      'Connection' : 'close'
    },
    data: {
      'params' : 'bla bla'
    },
    complete: function(jqXHR, textStatus) {
      console.log(jqXHR);
      console.log(textStatus);
      if (step < 2) {
        sendData('another.php', step+1);
      }
      else {
        console.log("done");
        // go forward
      }
    },
    dataType: 'html'
  });
}

$(document).ready(function() {
   sendData('run_script.php', 1);
});

Here is my screen shot from Chrome inspector:

enter image description here

And HTTP Requests:

run_script.php:

POST http://?????.com/test/run_script.php HTTP/1.1
Origin: http://?????.com
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.22 (KHTML, like Gecko)
Chrome/19.0.1049.3 Safari/535.22
Content-Type: application/x-www-form-urlencoded
Accept: text/html, */*; q=0.01
Referer: http://?????.com/test/result.php
params:bla bla

another.php:

POST http://?????.com/test/another.php HTTP/1.1
Origin: http://?????.com
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.22 (KHTML, like Gecko)
Chrome/19.0.1049.3 Safari/535.22
Content-Type: application/x-www-form-urlencoded
Accept: text/html, */*; q=0.01
Referer: http://?????.com/test/result.php
params:bla bla

There is no HTTP Response of course.

  • 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-31T04:29:16+00:00Added an answer on May 31, 2026 at 4:29 am

    Problem was, that task previously invoked on server restarts server. Then I need to wait before next AJAX call is invoked.

    I fact I have to solve problem with server restart first, this is work-around only and not the best solution.

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

Sidebar

Related Questions

I know about Application.Exit() but what if I'm not in a windows forms application
I know about SortedSet , but in my case I need something that implements
I know about this question: Which (third-party) debug visualizers for Visual Studio 2005/2008 do
I have mvc application (tutorial) running OK on SQL Server Express: <add name=MusicStoreEntities connectionString=data
Yesterday when I was running the WebLogic Application Server 11g installer, I encountered a
I know about the HIG (which is quite handy!), but what programming practices do
I know about code-behind files, but what is the best real-world way of Designers
I know about using a -vsdoc.js file for IntelliSense , and the one for
I know about the buttonMode property on a MovieClip (to get the hand cursor
I know about passwd(1) and crypt(3) . What I'm looking for is a C

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.