MCPcopy Create free account
hub / github.com/amcewen/HttpClient / post

Method post

HttpClient.h:132–136  ·  view source on GitHub ↗

Connect to the server and start to send a POST request. @param aServerName Name of the server being connected to. If NULL, the "Host" header line won't be sent @param aServerPort Port to connect to on the server @param aURLPath Url to request @param aUserAgent User-Agent string to send. If NULL the default user-a

Source from the content-addressed store, hash-verified

130 @return 0 if successful, else error
131 */
132 int post(const char* aServerName,
133 uint16_t aServerPort,
134 const char* aURLPath,
135 const char* aUserAgent =NULL)
136 { return startRequest(aServerName, aServerPort, aURLPath, HTTP_METHOD_POST, aUserAgent); }
137
138 /** Connect to the server and start to send a POST request.
139 @param aServerName Name of the server being connected to. If NULL, the

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected