468,470 Members | 2,080 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,470 developers. It's quick & easy.

Sending response asynchronously for an HTTP POST Request

I am using embedded web server mongoose.My embedded device runs the web server mongoose and is the server.


I am trying to achieve the following
Questions:
------------
1. Can response to an client HTTP POST request be sent at later part of the executions?
example
-------
Client(requests)------>Server------->Does some processing ------->Server sends multiple responses at different point of execution.


2. Can the Server send responses for the request asynchronously at different point.


How I achieve this ?
Aug 20 '14 #1
1 6076
Dormilich
8,651 Expert Mod 8TB
1. that depends on what you consider a response. generally for HTTP, you can only send one Response (the response may be chunked, but still only one as a whole) per Request. However, if you used WebSockets you could send anything anytime because you’re not bound to the HTTP.

2. see 1.
Aug 21 '14 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by reneeccwest | last post: by
5 posts views Thread by sushi | last post: by
2 posts views Thread by sushi | last post: by
4 posts views Thread by Maximus | last post: by
6 posts views Thread by Clif | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.