471,311 Members | 1,754 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,311 software developers and data experts.

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
1. Can response to an client HTTP POST request be sent at later part of the executions?
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 6351
8,656 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
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.