php - Sending POST Requests without waiting for response? -


I am writing a simple comfort service, which responds to requests from customers all in PHP.

My concern is, that, when my server responds to a request, it can end up tying resources if the customer is very slow to send the "OK" response back.

How do I send a POST request through the lib_curl setting to not wait for any requests, but leave the permission after sending POST data?

Is this possible? Thanks!

HTTP always requests - you can not send data without receiving the reply with HTTP Even if the response is very low (like a simple 200 is not a lesson), there is a need to react and every HTTP Socket will wait for that response.

If you do not care about the response, you can add a process to the server that makes your request, and you only push your request data (background) Like a service that is running in, checking a request database, and always a new entry was added when the request started) In this way you can request asynchronous and as soon as you stack Can add, request for, leave Yes

In addition to this, I have also been told that PHP is a server-side language with the customer being not part of any communication, so when the client requests a webpage (php file) , The server executes the file (and calls all the files a php file) and then returns the result to the client.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -