Skip to content

send(body)

OverEasy edited this page Feb 20, 2018 · 2 revisions

send(body)

Send a POST request.

This method will build the request data stream and return. The request consists of the HTTP header, implicit headers "content-length" and "host", and any explicit headers that were set. The specified body is also appended to the request.

body may be type String or type const char*

Asynchronously the request will be sent when the connection that was initiated with open() is established. When the response headers have been received and processed, readyState will be advanced to readyStateLoading.